Trong bước này, chúng ta sẽ tiến hành push container image lên Lightsail store để chuẩn bị triển khai cho dịch vụ Lightsail container của bạn.
sudo aws lightsail push-container-image --service-name lightsail-container --label nginx-container-hello --image nginx-container
Sau khi push thành công, kết quả Lightsail sẽ trả về như dưới đây.
Image "nginx-container" registered.
Refer to this image as ":lightsail-container.nginx-container.hello.1" in deployments.
Nếu bạn chạy câu lệnh nhiều lần , push 1 image nhiều lần thì số đằng sau tên image sẽ tăng số thứ tự lên theo số lần bạn thực hiện push.