Created
January 17, 2016 10:19
-
-
Save jppommet/bd3b9a6f7405dcdec038 to your computer and use it in GitHub Desktop.
Install Docker via Homebrew
This file contains hidden or 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 | |
# Install the Docker toolbox via Homebrew. | |
brew install cask dockertoolbox | |
# Create VM that Docker will run in. | |
# Replace "virtualbox" with another driver if desired... | |
docker-machine create --driver=virtualbox docker-vbox | |
# To remove your newly created VM: | |
# docker-machine rm docker-vbox | |
# Set environment variables. | |
eval "$(docker-machine env docker-vbox)" | |
# Test docker container hello world | |
docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment