Skip to content

Latest commit

 

History

History
 
 

docker

Instructions for Docker

These are instructions specific to deploying/using docker on different systems.

Installation

MacOS

Based on this article. The TL;DR version is:

  1. Install all the software with homebrew:
brew install docker
brew install docker-machine
brew cask install virtualbox
  1. Build docker VM (using vritualbox):
docker-machine create --driver virtualbox default

Managing Docker Machines (MacOS)

  1. Check docker status:
docker-machine ls
  1. Start/Stop docker machine:
docker-machine <start/stop> default
  1. 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.

Adding Memory/CPUs (MacOS)

  1. To change number of CPUs attached to the docker virtual machien, use
VBoxManage modifyvm default --cpus <N>

where <N> is new number of CPUS.

  1. 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).