Deploy your image
You now replace the nginx image with your own image. Lightsail creates version 2 of the deployment and keeps version 1, so you can roll back.
- On the Deployments tab, choose Modify your deployment. In the
web container, choose Choose stored image and select :fcj-container.fcj-nginx.<number>.

- The Image field now shows your stored image. Keep the port
80 and the public endpoint web.

- Scroll down and choose Save and deploy.

- The service shows Deploying with the new image. The old version keeps serving traffic until the new one passes its health check, so there is no downtime.

- After a few minutes, the status is Running and the container uses your image.

- Under Deployment versions, version 2 is Active and version 1 is Inactive. To roll back, open the menu (⋮) of version 1 and deploy it again.

- Open the public domain again, or run the
curl command of chapter 2. You see your page Welcome to the Amazon Lightsail Container workshop.
