Skip to content

Instantly share code, notes, and snippets.

@ctkjose
Last active August 29, 2015 14:13
Show Gist options
  • Save ctkjose/328324b1dd5f28ff744d to your computer and use it in GitHub Desktop.
Save ctkjose/328324b1dd5f28ff744d to your computer and use it in GitHub Desktop.
Playing with Docker on Mac Notes

###Start boot2docker from the command line

boot2docker init
boot2docker up

###Stop boot2docker from the command line

boot2docker stop
boot2docker poweroff

###Find ip of boot2docker from the command line

boot2docker ip

###Open a shell and issue docker commands when boot2docker is already running You have to set the DOCKER_HOST environment variable, with the following command.

$(/usr/local/bin/boot2docker shellinit)
docker ps

###Good resources

http://viget.com/extend/how-to-use-docker-on-os-x-the-missing-guide http://odewahn.github.io/docker-jumpstart/boot2docker.html

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