Skip to content

Instantly share code, notes, and snippets.

@InfamousStarFox
Created November 8, 2022 07:00
Show Gist options
  • Save InfamousStarFox/02e1e3abe760f494366c9ce86d244c01 to your computer and use it in GitHub Desktop.
Save InfamousStarFox/02e1e3abe760f494366c9ce86d244c01 to your computer and use it in GitHub Desktop.
How to update a docker-compose image to the latest

Docker compose update

List the cached images docker image ls

Copy the image id and delete it with docker image rm $IMAGE_ID

Verify the image was deleted, then rebuild the container with docker-compose up -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment