CentOS 8
Sponsored Link

Docker : Allow to common users
If you'd like to allow common users to run [docker] command, Configure like follows.
[1] Add users to [docker] group, then they can run [docker] command.
[docker] group is added by default on Docker CE, but if it does not exist, add it manualy.
[root@dlp ~]#
grep docker /etc/group

# add [cent] user to [docker] group

[root@dlp ~]#
usermod -a -G docker cent

[2] Verify commands with a user.
[cent@dlp ~]$
docker images

REPOSITORY               TAG       IMAGE ID       CREATED        SIZE
srv.world/centos-httpd   latest    fed1671fb260   3 days ago     250MB
centos                   latest    300e315adb2f   6 days ago     209MB
registry                 2         2d4f4b5309b1   5 months ago   26.2MB

[cent@dlp ~]$
docker pull ubuntu

Using default tag: latest
latest: Pulling from library/ubuntu
da7391352a9b: Pull complete
14428a6d4bcd: Pull complete
2c2d948710f2: Pull complete
Digest: sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
Status: Downloaded newer image for ubuntu:latest

[cent@dlp ~]$
docker run ubuntu echo run docker by a common user

run docker by a common user
Matched Content