docker build -t livecode .
docker run -it -v $(pwd):/livecode livecode
Created
April 12, 2016 04:22
-
-
Save William-Yeh/5f2380be2a7bee1dce0c88a1bbcca0eb to your computer and use it in GitHub Desktop.
Docker run from external volume
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 | |
VOLUME ["/livecode"] | |
CMD ["/livecode/hello.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
#!/bin/sh | |
echo "Hello, world!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment