Systemd alias for Docker

Hi Guys,

I’m new to Snaps. I’m initialising a new k8s cluster using kubeadm init. It expects to return something useful from systemd status docker to determine whether or not the container runtime is running. Docker is installed via a Snap.

Of course Snaps use a different naming in systemd. So it’s failing.

Forgive me if this topic has been beaten to death elsewhere, but is there any will to enable Alias directives for something more standard (in this case docker.service) ?

I chanced upon this [thread which is of a similar nature regarding NetworkManager.

You could argue that k8s should just fix their checks to check for the actual presence of the daemon rather than an entry in systemd, but checking for an otherwise completely expected docker.service doesn’t seem unreasonable.

Cheers.

PS I’ve verified that adding the Alias directive in the [Install] section allows kubeadm init to work as expected.