启动系统镜像文件失败-()

192.168.1.1 次浏览手机阅读
()

如何解决docker push镜像失败问题?

docker创建镜像及push镜像出错问题

docker build 出错

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=电脑0&networkmode=default&rm=1&session=ntdlgho4p5wt906yywzo9pcdd&shmsize=0&t=gamehall%3Av1.6.38&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied

解决方法:

gpasswd - #测试docker命令是否可以使用docker push出错

错误1:


Get https://hub.xxx.com/v1/_ping: dial tcp 192.168.1.8:443: getsockopt: connection 电脑refused

解决方法:


vim /etc/docker/daemon.json 添加 { "insecure-registries":["hub.xxxxx.com"] }

重启 docker

systemctl restart dockersystemctl restart docker.service

错误2:


denied: requested access to the resource is denied

解决方法电脑

docker login $你的镜像站点
电脑

喜欢 ()