I'm running 16.04 (distro=Ubuntu 16.04.1 LTS
and kernel=4.4.0-45-generic
) and installed docker by the docker snap.
snap install docker
and here is my snap list.
# snap list
Name Version Rev Developer Notes
docker 1.11.2-9 56 canonical -
snapstore-example 0.3 4 noise -
ubuntu-core 16.04.1 423 canonical -
but i was not able to start the docker daemon. what i did
systemctl start snap.docker.dockerd.service
Error log seems to be with permission.
Nov 30 00:54:20 ubuntu-xenial systemd[1]: Started Service for snap application docker.dockerd.
Nov 30 00:54:20 ubuntu-xenial snap[19148]: grep: /proc/self/mountinfo: Permission denied
Nov 30 00:54:20 ubuntu-xenial snap[19148]: time="2016-11-30T00:54:20.708894420Z" level=fatal msg="can't create unix socket /var/run/docker.sock: permission denied"
Nov 30 00:54:20 ubuntu-xenial systemd[1]: snap.docker.dockerd.service: Main process exited, code=exited, status=1/FAILURE
Nov 30 00:54:20 ubuntu-xenial systemd[1]: snap.docker.dockerd.service: Unit entered failed state.
Nov 30 00:54:20 ubuntu-xenial systemd[1]: snap.docker.dockerd.service: Failed with result 'exit-code'.
Nov 30 00:54:20 ubuntu-xenial systemd[1]: snap.docker.dockerd.service: Service hold-off time over, scheduling restart.
Nov 30 00:54:20 ubuntu-xenial systemd[1]: Stopped Service for snap application docker.dockerd.
Nov 30 00:54:20 ubuntu-xenial systemd[1]: snap.docker.dockerd.service: Start request repeated too quickly.
Nov 30 00:54:20 ubuntu-xenial systemd[1]: Failed to start Service for snap application docker.dockerd.
and this error to be more specific.
Nov 30 00:54:20 ubuntu-xenial snap[19148]: time="2016-11-30T00:54:20.708894420Z" level=fatal msg="can't create unix socket /var/run/docker.sock: permission denied"
while if i do apt-get install docker.io
and try to start docker.service with systemctl start docker.service
. it worked well.
any known issue with the docker snap? or did i miss any step. thanks!
/var/run/docker.sock
truly helped me start the Dockerd withsudo /usr/bin/snap run docker.dockerd
. Before that, when trying to start a container, I have been only getting "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?". – kcpr Oct 25 '20 at 12:23