I recently noticed a server performing
apt-get update && apt-get dist-upgrade
Amongst other things, docker was updated and restarted.
However, I noticed some changes I made to the service file previously were now gone. The file at
/lib/systemd/system/docker.service seems to have been reset.
Is this possible? I don't recall if I ran
daemon-reload after these changes.
EDIT: To be clear: I'm wondering is
dist-upgrade basically removed the service file and replaced it with a default one?
daemon-reload prevent this in the future?
EDIT2: Ok, looks like
sudo systemctl edit docker.service is the way to go and performs a
daemon-reload on save.