User-group-related-operate

来自三线的随记

add user to group

method 1

vim /etc/group

[root@node ~]# cat /etc/group|grep docker
docker:x:989:root


method 2

usermod -aG docker root