Currently I've configured my docker usingn /etc/docker/daemon.json
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2376"],
"tls": true,
"tlscacert": "/data/certs/ca.pem",
"tlscert": "/data/certs/server-cert.pem",
"tlskey": "/data/certs/server-key.pem",
"containerd": "/run/containerd/containerd.sock",
"tlsverify": true
}
and /lib/systemd/system/docker.service on ubuntu 20.04 server
ExecStart=
ExecStart=/usr/bin/dockerd
The problem is that every time I make an update of my OS, the file /lib/systemd/system/docker.service is overwrited and docker cannot start until I modify the file docker.sesrvice again
Are there something more that I need to do in order to avoid this issue or my config files are wrong.
Thanks in advance