Friday, October 30, 2026

Docker, Autostart, and NFS Configurations

This week, after some PHP, SSL Certificate, and TCP stack advisories came out, my docker server rebooted automatically after patching.

Nothing came back online properly.

Sure, the services all tried to start in docker, but all of them failed.  It turned out after some investigation that the NFS never got mounted up.

So, rather than running docker in that state, I first found the systemctl file by running :

    systemctl list-units --type=mount

Then, I edited the /etc/systemd/system/multi-user.target.wants/docker.service and found the After= line, and added the mount.service file found.  Saved it out, and now docker should not even start without having the NFS configuration files and web documents involved.

No comments:

Post a Comment