User Tools

Site Tools




Docker Compose

“Compose is a tool for defining and running multi-container Docker applications.” Configure containers using YAML

on OSX
install docker on ElementaryOS (freya)
error: Host "dev" does not exist

docker is configured to use the default machine with IP
For help getting started, check out the docs at

Host "dev" does not exist

solution: Run this command to configure your shell:

eval "$(docker-machine env dev)"

uninstall docker on osx (for later reinstall)


vanuit kitematic de terminal openen opent bash met extra ENV variables.

bash -c "clear && DOCKER_HOST=tcp:// DOCKER_CERT_PATH=/Users/rick/.docker/machine/machines/dev DOCKER_TLS_VERIFY=1 $SHELL"

je kunt ook vanuit de 'gewone' terminal deze variabelen setten met export:

export DOCKER_HOST=tcp:// DOCKER_CERT_PATH=/Users/rick/.docker/machine/machines/dev DOCKER_TLS_VERIFY=1

tutorial steps

docker version
docker search tutorial
docker pull learn/tutorial #learn is the username, tutorial the image name
docker run learn/tutorial echo "hello world"
docker run learn/tutorial apt-get install -y ping
docker ps -l
docker commit 698 learn/ping #698 are the first letters of the ID of the container. This command returns the *image ID*
docker run learn/ping ping
docker ps
docker inspect efe #efe are the first letters of the ID (container ID or image ID?)
docker images #shows a list of the images on your system
docker push learn/ping
# next steps:
#   sign up for a docker hub account:
#   install docker engine: (


start een nieuwe container

'start' opent een bestaande

 docker start -i prickly_poincare     # -i means interactive

start boot2docker

boot2docker start

pull & run debian

docker pull debian
docker run -i -t debian /bin/bash
docker.txt · Last modified: 2017/04/19 00:52 by rick