普通用户docker不再用sudo
切换机器多次忘记,仅以此记录
创建用户组
sudo groupadd docker
添加当前用户
sudo usermod -aG docker ${USER}
查看效果
docker run hello-world
如果成功运行并且弹出
WARNING: Error loading config file: /home/jsk/.docker/config.json: stat /home/jsk/.docker/config.json: permission
可通过修改owner,添加权限
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R sudo chmod g+rwx "$HOME/.docker" -R
相关推荐
changecan 2020-11-19
changecan 2020-09-22
sunnnyduan 2020-10-16
lonesomer 2020-09-17
houdaiye 2020-09-23
XPZ0 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
liyansring 2020-08-15
liai 2020-08-09
山有木兮卿有意 2020-08-03
85206633 2020-07-28
suosuo 2020-07-28
83911930 2020-07-28
85590296 2020-07-22
liym 2020-07-20