0

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

Docker service does not start

Cannot connect to docker daemon

Docker command can't connect to Docker daemon

nothing worked!! Can anyone help me?

4
  • Similar here stackoverflow.com/questions/40759184/… Commented Nov 23, 2016 at 8:41
  • techotopia.com/index.php/… How about bridge-utils? Commented Nov 23, 2016 at 8:42
  • already installed @Tuan Commented Nov 23, 2016 at 9:11
  • In the end I switched to OracleLinux7 and got it working. Still don't know how to fix it in OracleLinux6 Commented Jan 2, 2017 at 10:09

1 Answer 1

0

I don't have a Oracle Linux 6 to test but I belive you got this issue. Someone said it's fixed in Docker 1.7.1 RC but I've not checked it yet.

I'd got the smilar issue on CentOS 6 or RehHat 6. My workaround is install docker-io-1.6.2-3.el6.x86_64.rpm, not docker-engine.

Edit yum.repos.d, please edit it base on your Oracle Linux 6

cd /etc/yum.repos.d
wget http://www.hop5.in/yum/el6/hop5.repo
yum update
  • Install the RPM file and start Docker

Like this

rpm -ivh docker-io-1.6.2-3.el6.x86_64.rpm
service docker start
Sign up to request clarification or add additional context in comments.

2 Comments

didn't get docker-io-1.6.2 in that link but i tried with 1.7.1. same error
I recommend you to upgrade your OracleLinux to 7 if you want to use Docker. If you can't, you might have to find the package docker-io-1.6.2-3.el6.x86_64.rpm on internet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.