Docker 29 cheatsheet

Docker 29: Images

6 common Docker 29 tasks.

Build an image

Build an image from the Dockerfile in the current directory and tag it.

docker build -t myapp:1.0 .

List images

Show the images stored locally.

docker image ls

Pull an image

Download an image from a registry.

docker pull nginx:latest

Tag an image

Give an existing image another name, for example before pushing.

docker tag myapp:1.0 myuser/myapp:1.0

Push an image

Upload an image to a registry.

docker push myuser/myapp:1.0

Remove an image

Delete a local image. Docker refuses if a container still uses it.

docker image rm myapp:1.0

Was this page helpful?