I'm trying to install docker on a virtual server which has OracleLinux 6 by following Offical docs
I updated my kernel to uekr 4
#uname -r
4.1.12-61.1.19.el6uek.x86_64
Here's the docker version
#docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
When i start the daemon, it gives OK but it dies immediately.
#service docker start
Starting docker: . [ OK ]
#service docker status
docker dead but subsys locked
Here's the logs
\nWed Nov 23 07:53:00 GMT 2016\n
time="2016-11-23T07:53:00.610036664Z" level=info msg="libcontainerd: new containerd process, pid: 5114"
time="2016-11-23T07:53:00.649075962Z" level=warning msg="containerd: low RLIMIT_NOFILE changing to max" current=1024 max=4096
time="2016-11-23T07:53:01.690428304Z" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2016-11-23T07:53:01.766503952Z" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2016-11-23T07:53:01.788944031Z" level=info msg="[graphdriver] using prior storage driver \"devicemapper\""
time="2016-11-23T07:53:01.793561685Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2016-11-23T07:53:01.794228177Z" level=warning msg="mountpoint for pids not found"
time="2016-11-23T07:53:01.794714149Z" level=info msg="Loading containers: start."
time="2016-11-23T07:53:01.996320180Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
time="2016-11-23T07:53:02.101877068Z" level=fatal msg="Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: package not installed"
It says package not installed but when i run sudo modinfo bridge
, it shows me the module. Is there any other package I'm missing?
I tried setting env variables in /etc/sysconfig/docker.
I tried installing through binaries.
I tried creating user and adding him to docker group.
I tried many other solutions like
Cannot connect to docker daemon
Docker command can't connect to Docker daemon
nothing worked!! Can anyone help me?