Created
February 12, 2018 23:41
-
-
Save noelbundick/652717e9b372c337bbf0b552887e9cb3 to your computer and use it in GitHub Desktop.
Interactive Docker example
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
FROM alpine | |
COPY install.sh / | |
CMD /bin/sh -c '/install.sh';'/bin/sh' |
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
echo "setup ran" |
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
noel@nobun-book:~/code/temp-azurecli$ docker build -t temp . | |
Sending build context to Docker daemon 3.072kB | |
Step 1/3 : FROM alpine | |
---> 3fd9065eaf02 | |
Step 2/3 : COPY install.sh / | |
---> Using cache | |
---> ff20fe92aabc | |
Step 3/3 : CMD /bin/sh -c '/install.sh';'/bin/sh' | |
---> Using cache | |
---> a8445ca3beb2 | |
Successfully built a8445ca3beb2 | |
Successfully tagged temp:latest | |
noel@nobun-book:~/code/temp-azurecli$ docker run -it temp | |
setup ran | |
/ # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment