Docker Community Forums

Share and learn in the Docker community.

Add Liunx user to docker.service systemd unit (debian)


#1

Hi,

I would like to add the Linux user to docker.service systemd unit.

for example:
[Service]
User=pi
ExecStart=/usr/lib/docker/ibrahim-plugin
workingDirectory=/usr/lib/docker

[Install]
WantedBy=multi-user.target

when I add User=pi
i get error message from the docker daemon.

any recommandation please ?

Many thansk
Ibrahim


(Gary Forghetti) #2

The Docker daemon must run as root.


#3

Thank you for your response. I know that the docker daemon must be root to run it.

I need to build docker. Socket file particular user