12
6
I installed boot2docker and I ran:
./boot2docker start
export DOCKER_HOST=tcp://localhost:4243
I started a tutorial from the Docker site.
I don't understand one thing - when I run:
sudo docker info
==>
Get http:///var/run/docker.sock/v1.11/info: dial unix /var/run/docker.sock: no such file or directory
However when I run without sudo
it works:
MacCris:bin cristianc$ docker info
Containers: 2
Images: 10
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Dirs: 14
Execution Driver: native-0.2
Kernel Version: 3.14.1-tinycore64
Debug mode (server): true
Debug mode (client): false
Any idea why running with sudo as in the tutorial does not work (at least for me)?
2This is because using sudo is clearing out your env. There is no need to use sudo here because you are connecting over the TCP interface – cpuguy83 – 2014-06-14T13:18:25.403