#!/linuxSucks/Update A Docker Container

Feb 15, 2026

To update a container it needs to pull the latest image. Docker container are immutable.

Follow steps:

Stop container

docker-compose down

Pull the new image with docker compose

docker-compose pull

Run the updated container

docker-compose up -d --remove-orphans

Remove old containers (optional)

docker prune -f

That’s all…

Home  Linux  Notes  Blog Spot