linux - Docker fails at first run after install. Error Post http://..... permission denied. Are you trying to connect to a TLS-enabled daemon without TLS? -


i'm following step 1 of this docker tutorial. have installed ubuntu version 14.04 on virtual box vm. intentionally downgraded docker version when type "docker version" client version: 1.5.0. because server intend communicate on 1.5.0.

when trying command "docker run hello-world" response:

"post http:///var/run/docker.sock/v1.17/containers/create: dial unix /var/run/docker.sock: permission denied. trying connect tls-enabled daemon without tls?" 

when running "sudo docker run hello-world" response:

cannot connect docker daemon. 'docker -d' running on host? 

can please explain me what's happening , how can fix it? thanks.

edit: tried follow solution linux here

however,

i had tried follow el mesa's instructions in post. however, when got running sudo docker -d got error running devicecreate (createpool) dm_task_run failed. don't think need start since following tutorial , tutorial did docker run hello-world after installing docker

it may docker daemon not running.

i have ubuntu/docker on desktop wireless lan.

it acts bit finicky compared wired computers docker works ok, , duplicates error message reported:

$ docker run -it ubuntu:latest /bin/bash fata[0000] post http:///var/run/docker.sock/v1.17/containers/create: dial unix /var/run/docker.sock: no such file or directory. trying connect tls-enabled daemon without tls?  

however, after running:

sudo service docker start 

it behaves correctly (at least until host rebooted):

$ docker run -it ubuntu:latest /bin/bash root@2cea4e5f5028:/#  

if system not starting docker daemon on boot, case here, docker daemon can automatically started on boot editing /etc/rc.local so. add line below before exit line. fork new bash shell, wait 30 sec network setup, etc., settle, , start docker daemon. sudo unnecessary here because /etc/rc.local runs root.

( sleep 30; /usr/sbin/service docker start ) & 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -