Install the Docker.io package. But doesn't work on the Ubuntu Xenial Xerus (16.04)

Asked by Youhei Tooyama

Is this the ubuntu's bug?

ytooyama@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)"
ytooyama@ubuntu:~$ docker pull docker.io/fedora:23
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
ytooyama@ubuntu:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2016-03-11 14:14:43 JST; 4min 8s ago
     Docs: https://docs.docker.com
 Main PID: 3823 (docker)
   CGroup: /system.slice/docker.service
           └─3823 /usr/bin/docker daemon -H fd://

Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.587566030+09:00" level=info msg="Firewalld runn
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.636617916+09:00" level=info msg="Default bridge
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.735328486+09:00" level=warning msg="Your kernel
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.773151624+09:00" level=info msg="Loading contai
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.773560658+09:00" level=info msg="Loading contai
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.773778608+09:00" level=info msg="Daemon has com
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.774004916+09:00" level=info msg="Docker daemon"
Mar 11 14:14:43 ubuntu systemd[1]: Started Docker Application Container Engine.
Mar 11 14:14:43 ubuntu docker[3823]: time="2016-03-11T14:14:43.833131068+09:00" level=info msg="API listen on
Mar 11 14:15:26 ubuntu systemd[1]: Started Docker Application Container Engine.
ytooyama@ubuntu:~$ docker --version
Docker version 1.10.2, build c3959b1
ytooyama@ubuntu:~$ apt-cache policy docker.io
docker.io:
  Installed: 1.10.2-0ubuntu3
  Candidate: 1.10.2-0ubuntu3
  Version table:
 *** 1.10.2-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Question information

Language:
Japanese Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug. Xenial is not ready and not stable.

Revision history for this message
Youhei Tooyama (ytooyama) said :
#2

Thanks!
I'll report this bug.

Revision history for this message
Nicholas Roberts (niccolox) said :
#3

I installed the Docker binary direct from Dockers website and not from apt-get and I get a similar error

docker pull ubuntu
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

 cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)"

docker -v
Docker version 1.10.2, build c3959b1

was trying to install Devstep
https://github.com/fgrehm/devstep/blob/master/docs/getting-started.md

Revision history for this message
Nicholas Roberts (niccolox) said :
#4

actually, I need to stop assuming its a xenial bug

its a docker daemon and permissions thing

sudo ./docker daemon -D

sudo docker pull fgrehm/devstep:v0.4.0

obviously running docker under sudo is bad form..

but it does indicate, its not xenial bugging out, its docker config

Revision history for this message
Nicholas Roberts (niccolox) said :
#5

I had to install 1.10 version of Docker from binary on Xenial and it didnt create the docker group and so this was useful

http://askubuntu.com/a/477554

Can you help with this problem?

Provide an answer of your own, or ask Youhei Tooyama for more information if necessary.

To post a message you must log in.