Score:0

Use Docker on a systemd disabled VM

nc flag

I am provided by a VM running Ubuntu 18.04.5 LTS which has systemd disabled.

I have root access on it.

I am trying to run docker on it which is installed but I get error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I cannot run systemctl as I get error System has not been booted with systemd as init system (PID 1). Can't operate.

I ran the command sudo service --status-all and amongst the listed services Docker's service was not found.

Is there a way I can user docker here?

David avatar
cn flag
I think the correct answer to your question is no.
user535733 avatar
cn flag
If not systemd, exactly which `init` are you using? sysvinit? Upstart? Something else? And why?
Wilfred Almeida avatar
nc flag
@user535733 It's using ```sys-v```. I have no control over it. As I said I am provided with the VM.
user535733 avatar
cn flag
So your question really seems to be "*How do I control services (including Docker) using sysvinit instead of systemd?*"
Wilfred Almeida avatar
nc flag
@user535733 I don't really know, I don't have that deep knowledge of linux. For now I just want a way to run docker.
Artur Meinild avatar
vn flag
You would need to consult the System V documentation for this. Since Ubuntu uses systemd as default init, you're probably better helped on [unix.se].
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.