I've tried to remove docker with this manual.
And I removed virtualbox. And then tried to install boot2docker.
After boot2docker init etc (by the manual on docker site)
docker run helloworld
gives me this error
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
boot2docker status
running
docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): darwin/amd64
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
You need to run
boot2docker up
thendocker run helloworld
.Maybe the daemon is not running?
... check if the daemon is running :
then start it :
and now you should be able to connect.
Boot2docker is not the recommended way of using Docker (on Windows/OS X) anymore (IMHO).
See Docker Machine instead (which can use the "boot2docker iso" internally, but not only).
You may also want to import your existing boot2docker environment (to keep your built images, etc.), it's possible too.
Then using Docker Machine, you can create a working Docker environment with the following commands:
On OS X (or an OS which supports
eval
andexport
commands), if you have theDocker CLI
installed:OR
On any OS, if you have not the
Docker CLI
installed: