Created
October 4, 2019 21:18
-
-
Save hayzem/ed5988bad3bf0c937a8c9df5f63976d6 to your computer and use it in GitHub Desktop.
modify content of docker image and tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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