how to docker

brew install docker

brew cask install docker-toolbox

https://kitematic.com gives you some UI

off you go

bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'


default) Starting the VM...
(default) Check network to re-create if needed...
(default) Found a new host-only adapter: "vboxnet0"
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: /usr/local/bin/docker-machine env default

## .
## ## ## ==
## ## ## ## ## ===
/”””””””””””””””””\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/

docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com


based on https://docs.docker.com/engine/reference/commandline/images/ and some shell splitting:

remove all Exited docker containers from your machine:

docker rm $(docker ps -a | grep Exited | cut -d' ' -f1)

and remove al unused images:

docker rmi $(docker images --format "{{.ID}} {{.Repository}}" | grep none | cut -d' ' -f1)

Kommentare sind geschlossen.