Skip to content

Instantly share code, notes, and snippets.

@jknsware
Created January 23, 2019 16:56
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 jknsware/d4f3af4be9b62aca153c12600a40b4b6 to your computer and use it in GitHub Desktop.
Save jknsware/d4f3af4be9b62aca153c12600a40b4b6 to your computer and use it in GitHub Desktop.

docker commit CONTAINER NEWIMAGENAME

Then start the newly saved image with a different CMD, so for example:

docker run -it --entrypoint /bin/bash NEWIMAGENAME

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