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

Latest

If you look closely, you'll notice that your old version is tagged "latest"... that's a bit confusing. As it turns out, the latest tag doesn't always indicate that a specific tag is the latest version of an image. In reality, latest is just the default tag that's used if you don't explicitly supply one. We didn't use a tag on our first version, that's why it was tagged with "latest".

Should I Use “latest”?

The convention I'm familiar with is to use semantic versioning on all your images, but to also push to the "latest" tag on your most recent image. That way you can keep all of your old versions around, but the latest tag still always points to the latest version.

So, for example, if I were updating an application to version 5.4.6, I would probably do it like this:

docker build -t bootdotdev/awesomeimage:5.4.6 -t bootdotdev/awesomeimage:latest .
docker push bootdotdev/awesomeimage --all-tags