We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Tags

Let's publish a new version of our web server. With Docker, a tag is a label that you can assign to a specific version of an image, similar to a tag in Git.

The latest tag is the default tag that Docker uses when you don't specify one. It's a convention to use latest for the most recent version of an image, but it's also common to include other tags, often semantic versioning tags like 0.1.0, 0.2.0, etc.

Deployment Pipelines

Publishing new versions of Docker images is a very common method of deploying cloud-native back-end servers. Here's a diagram describing the deployment pipeline of many production systems (including the server that powers the Boot.dev site you're on currently).

Assignment

    • Replace: <p> Hello from Docker! I'm a Go server. </p>
    • With: <p> Hi Docker, I pushed a new version. </p>
docker build . -t USERNAME/goserver:0.2.0
docker run -p 8991:8991 USERNAME/goserver:0.2.0
docker push USERNAME/goserver:0.2.0
docker pull USERNAME/goserver:0.2.0
docker run -p 8991:8991 USERNAME/goserver:0.2.0

With the container running, run and submit the CLI tests.