Skip to content

Instantly share code, notes, and snippets.

@bobmaerten
Created February 10, 2016 08:06
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 bobmaerten/db69c8c3a7deba121d64 to your computer and use it in GitHub Desktop.
Save bobmaerten/db69c8c3a7deba121d64 to your computer and use it in GitHub Desktop.
Docker create and serve default jekyll image
$ docker-machine use bobmaerten
$ docker create --name jekyll_site -v /srv/jekyll jekyll/jekyll
$ docker run --rm --label=jekyll --volumes-from jekyll_site -it -p 4000:4000 jekyll/jekyll jekyll new .
$ docker run --rm --label=jekyll --volumes-from jekyll_site -it -p 4000:4000 jekyll/jekyll
@bobmaerten
Copy link
Author

Oops docker-machine use bobmaerten est un alias. Ça fait le eval recommandé par docker-machine pour utiliser la bonne cible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment