Skip to content

Instantly share code, notes, and snippets.

@hayzem
Created October 4, 2019 21:18
Show Gist options
  • Save hayzem/ed5988bad3bf0c937a8c9df5f63976d6 to your computer and use it in GitHub Desktop.
Save hayzem/ed5988bad3bf0c937a8c9df5f63976d6 to your computer and use it in GitHub Desktop.
modify content of docker image and tag
docker run -it --name "{containerName}" --entrypoint "/bin/bash" {imageName}
// modify your container here
// --entrypoint modifys image entrypoint. if it is defined to something else in the image you have yo change it back
docker run -it --name "{containerNameWithOriginalEP}" --entrypoint "{originalEntrypoint}" {containerName}
// now {containerNameWithOriginalEP} can be tagged and pushed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment