1
2
3
4
5
6
7
8
9
10
11
[root@localhost ~]# groupadd docker
[root@localhost ~]# groups
root
[root@localhost ~]# usermod -a -G docker lee
[root@localhost ~]# grep docker /etc/group
dockerroot:x:994:
docker:x:1001:lee
[root@localhost ~]# service docker restart
Redirecting to /bin/systemctl restart docker.service
[root@localhost ~]# su lee
[lee@localhost ~]$ docker images