Skip to content

Instantly share code, notes, and snippets.

@William-Yeh
Created April 12, 2016 04:22
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 William-Yeh/5f2380be2a7bee1dce0c88a1bbcca0eb to your computer and use it in GitHub Desktop.
Save William-Yeh/5f2380be2a7bee1dce0c88a1bbcca0eb to your computer and use it in GitHub Desktop.
Docker run from external volume
FROM alpine
VOLUME ["/livecode"]
CMD ["/livecode/hello.sh"]
#!/bin/sh
echo "Hello, world!"

HOW TO USE THIS

  1. docker build -t livecode .
  2. docker run -it -v $(pwd):/livecode livecode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment