Reputation: 44275
I have installed docker for a Mac, and in order to execute a simple test I seem to have to run all of these steps:
docker-machine start
to start the docker daemon(?)docker-machine env
to get a list of environment settings.eval $(docker-machine env)
to set these settingsdocker run hello-world
Is that the correct way on how you start the daemon or setup the machine/terminal in order to use docker? Or is there a more easy way to do this?
Upvotes: 3
Views: 7165
Reputation: 74620
It looks like you have installed Docker Toolbox rather than Docker for Mac.
Once Docker for Mac is installed it provides a more streamlined experience. The Linux VM is largely hidden from you and doesn't require VirtualBox to run.
The docker
command will connect to the new VM by default without setting up the environment as the docker socket from the VM is mapped through.
→ ls -l /var/run/docker.sock
lrwxr-xr-x 1 root daemon 57 1 Nov 00:02 /var/run/docker.sock -> /Users/matt/Library/Containers/com.docker.docker/Data/s60
Upvotes: 3