Skip to content

Docker image/container upgrade best practise — by ahokanson, meyay and goffinf on Docker Community Forums

intermediateforumLink only (©)

A discussion of how to update a container when its image changes. Answers say to stop the old container first if ports are exposed, manage containers with Compose, rebuild with --no-cache --pull for evergreen tags, and that reusing the same tag breaks image immutability, so explicit version tags are preferred.

Read the full thread on forums.docker.com

Source: Docker image/container upgrade best practise by ahokanson, meyay and goffinf on Docker Community Forums. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

dockerupdating containersimage tagscompose

More in Docker & Containers

Volumes — by Docker Docs

intermediatepage

Docs on persisting container data with volumes, which Docker calls the preferred mechanism, versus bind mounts that tie you to the host's folder layout. Mentions read-only mounts, subdirectory mounts, volume drivers for NFS/CIFS, and the gotcha that mounting over a non-empty directory hides its existing files. Volumes are not removed automatically when a container is deleted.