描述:
虚拟机-centos-docker
docker build -t friendlyhello .
异常:
connect refuse
解决办法1:
重启docker服务,结果无效
解决办法2:
重启虚拟机,重启docker服务,结果提示
Got permission denied while trying to connect to the Docker daemon socket
切换到root账号,成功
描述:
虚拟机-centos-docker
docker build -t friendlyhello .
异常:
connect refuse
解决办法1:
重启docker服务,结果无效
解决办法2:
重启虚拟机,重启docker服务,结果提示
Got permission denied while trying to connect to the Docker daemon socket
切换到root账号,成功