Last active
August 29, 2015 14:15
-
-
Save danlynn/13dc7c1faec9dc85120a to your computer and use it in GitHub Desktop.
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-machine Notes | |
Download docker-machine binary from: | |
https://github.com/cloudnativeapps/machine/releases | |
(not: https://github.com/docker/machine/releases) | |
OR - build it yourself by cloning and following the build instructions at the bottom of the README.md: | |
https://github.com/docker/machine | |
Move the downloaded binary to: | |
/usr/local/bin/docker-machine | |
Set attributes: | |
chown root:wheel /usr/local/bin/docker-machine | |
chmod a+x /usr/local/bin/docker-machine | |
Create ~/.docker/images dir | |
Download to ~/.docker/images: (vmwarefusion) | |
https://github.com/cloudnativeapps/boot2docker/releases | |
Might have to make a symlink to the downloaded iso so that the docker-machine create command can find it: | |
ln -s boot2docker-1.5.0-vmw.iso boot2docker-vmw.iso | |
Create a machine named 'dev' based on vmwarefusion iso image that we just downloaded: | |
docker-machine create -d vmwarefusion dev | |
Configure docker to use docker-machine named 'dev': | |
$(docker-machine env dev) | |
Run bash in image and share a dir from the host: | |
docker run -t -i --entrypoint /bin/bash -v /Users/danlynn/Documents/JavaScript/Projects/ember-cli-docker-sample2:/myapp danlynn/ember-cli:0.1.15 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment