I am trying to install Docker daemon as non root user, following this guide: https://docs.docker.com/engine/security/rootless/
First, I removed the existing rootful docker daemon.
Then I created a user called
docker-user and made it a member of
Then I switched to shell for that docker-user like so:
sudo -iu docker-user
And ran the rootless docker installation script given at the link above.
docker-user@ubuntu:~$ curl -fsSL https://get.docker.com/rootless | sh # Installing stable version 19.03.8 # Existing rootless Docker detected at /home/docker-user/bin/dockerd # systemd not detected, dockerd daemon needs to be started manually /home/docker-user/bin/dockerd-rootless.sh --experimental --storage-driver vfs # Docker binaries are installed in /home/docker-user/bin # Make sure the following environment variables are set (or add them to ~/.bashrc): export DOCKER_HOST=unix:///tmp/docker-1003/docker.sock
Looking at the script, the line
systemd not detected, dockerd daemon needs to be started manually is output if
systemctl --user daemon-reload falis
The output of
systemctl --user daemon-reload is
docker-user@ubuntu:~$ systemctl --user daemon-reload Failed to connect to bus: No such file or directory
I don't want to start docker manually, it should run as a service like the usual docker installation. As per the guide, I should be able to run it as a service. What am I doing wrong?