Skip to content

Instantly share code, notes, and snippets.

@4sskick
Created February 18, 2022 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4sskick/048d46cf86e5c916b9acccf76444fda6 to your computer and use it in GitHub Desktop.
Save 4sskick/048d46cf86e5c916b9acccf76444fda6 to your computer and use it in GitHub Desktop.
rebuilding container docker
this case happen when you already run the exsting container docker, then you gonna edit the config by add another image via `COPY --from=<image-docker> /src /dst` or something else
to get latest version of container you've already edit, you need to rebuit it by command `docker-compose up -d --no-deps --build <service-name-on-docker-compose.yml>`
it gonna recreate container from beginning, based on this `https://stackoverflow.com/questions/36884991/how-to-rebuild-docker-container-in-docker-compose-yml`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment