This is the easy way - just launch Docker.app and wait for it to finish loading.
The Docker daemon should be running in the background, which you can test by
running docker ps
. If you're on OS X and using docker-machine
instead of
Docker for Mac, you may have to run:
docker-machine start default
eval $(docker-machine env)
The docker daemon might already be running, but if necessary you can use the following commands to start it:
# as a system service
sudo systemctl enable --now docker
# manually
dockerd
If you have issues running Docker, try adding your user to the docker group, and/or updating the socket file permissions, or try running these commands under sudo
.