These are instructions specific to deploying/using docker on different systems.
Based on this article. The TL;DR version is:
- Install all the software with homebrew:
brew install docker
brew install docker-machine
brew cask install virtualbox
- Build docker VM (using vritualbox):
docker-machine create --driver virtualbox default
- Check docker status:
docker-machine ls
- Start/Stop docker machine:
docker-machine <start/stop> default
- Docker environment helper functions:
source env.fish
in the fish shell, or
source env.sh
in bash. This will configure the docker-env
and docker-unenv
helper
functions. They set (and unset) the environment variables pointing to the
default docker machine.
- To change number of CPUs attached to the docker virtual machien, use
VBoxManage modifyvm default --cpus <N>
where <N>
is new number of CPUS.
- To change the amount of memory available to the docker virtual machine, use
VBoxManage modifyvm default --memory <N>
where <N>
is the amount of memory (in MiB).