Answers for "dockerd needs to be started with root. To see how to run dockerd in rootless mode with unprivileged user, see the documentation"

6

make docker sudo less

$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ newgrp docker
Posted by: Guest on May-05-2020
0

setting docker as a non root user

##########################################
# Dockerfile to change from root to 
# non-root privilege
###########################################
# Base image is CentOS 7
FROM Centos:7
# Add a new user "john" with user id 8877
RUN useradd -u 8877 john
# Change to non-root privilege
USER john
Posted by: Guest on January-26-2021

Code answers related to "dockerd needs to be started with root. To see how to run dockerd in rootless mode with unprivileged user, see the documentation"

Browse Popular Code Answers by Language