All my unix host use the ldap backend.
docker
group is existing on the ldap, this is also why docker.service
must start after nslcd.service
.
I have tried to edit systemctl
startup configuration for docker.service
:
$ sudo systemctl edit --full docker.service
And I add nslcd.service
to After
, Wants
, Requires
:
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target docker.socket firewalld.service nslcd.service
Wants=network-online.target nslcd.service
Requires=docker.socket nslcd.service
I still can't get docker to run after that service:
sudo service docker status
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://docs.docker.com
Oct 10 19:35:02 dev-08 systemd[1]: Dependency failed for Docker Application Container Engine.
There is no problem to start container manually after starts, since I login through ldap.