Bug: docker service doesn't start on centos-7
Summary
Using docker role (version 1.1.0) on centos-7 doesn't work properly. In current version docker doesn't start.
Steps to reproduce
- Use role docker to install docker service on CentOS 7 machine.
- Check
systemctl status docker.service
.
Expected behavior
Docker service should start.
Actual behavior
Starting docker service fails.
Relevant logs and/or screenshots
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─settings.conf
Active: failed (Result: exit-code) since śro 2017-03-01 08:34:34 UTC; 6s ago
Docs: https://docs.docker.com
Process: 3427 ExecStart=/usr/bin/dockerd -H fd:// --mtu=1450 --storage-driver=overlay (code=exited, status=1/FAILURE)
Main PID: 3427 (code=exited, status=1/FAILURE)
mar 01 08:34:33 rundeck systemd[1]: Starting Docker Application Container Engine...
mar 01 08:34:34 rundeck dockerd[3427]: no sockets found via socket activation: make sure the service was started by systemd
mar 01 08:34:34 rundeck systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
mar 01 08:34:34 rundeck systemd[1]: Failed to start Docker Application Container Engine.
mar 01 08:34:34 rundeck systemd[1]: Unit docker.service entered failed state.
mar 01 08:34:34 rundeck systemd[1]: docker.service failed.
Possible fixes
Remove parameter -H fd://
from template settings.conf.j2
in docker role. Proposed solution has been tested on Ubuntu Xenial and Yakety - works great.