Getting docker daemon not running error -
i trying docker working on sys however, not able to
steps reproduce issue facing:
- installed epel on 6.5 rhel
- installed docker-io
- able run "docker" command
when running "docker run -i -t fedora /bin/bash" command using without root, getting below error:
fata[0000] post http:///var/run/docker.sock/v1.17/containers/create: dial unix /var/run/docker.sock http:///var/run/docker.sock/v1.17/containers/create:%20dial%20unix%20/var/run/docker.sock : permission denied. trying connect tls-enabled daemon without tls?
however, root getting diff error below same command:
fata[0000] cannot connect docker daemon. 'docker -d' running on host?
a rhel 6.5, termed update 5, 21 november 2013 , comes kernel 2.6.32-431.
that seems quite old kernel docker installed , run successfully. docker need ideally 3.10+ kernel.
although adrian mouat mentions in comments red hat enterprise linux 6.5 (64-bit) or later supported
you need 64 bit rhel 6.5 or later, rhel 6 kernel version 2.6.32-431 or higher has specific kernel fixes allow docker work.
so make sure docker daemon started:
sudo service docker start then try sudo docker commands:
sudo docker run -i -t fedora /bin/bash the doc mentions:
if
cannot start containererror mentioningselinuxorpermission denied, may need update selinux policies.
can done usingsudo yum upgrade selinux-policy, rebooting.
Comments
Post a Comment