Add a tag to an image with Docker

Add tags to Docker images.

John Savill

May 14, 2016

1 Min Read
Add a tag to an image with Docker

Q. I added an image using PowerShell for containers but after restarting Docker engine the image is not present with a latest tag, what can I do?

A. By default when an image is added using PowerShell management infrastructure the OS image is also available in Docker (after restarting the Docker service) but will have a tag of the version only. If you also want the image to be tagged with "latest" to avoid having to specify the image version simply add a tag. For example view the images to view the image ID:

docker images

Then once you have the ID and image name add a latest tag using:

docker tag :latest
e.g. docker tag dbfee88ee9fd windowsservercore:latest

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like