/var/jenkins_home/workspace/jcds-app-server/deploy WARNING! Using --password via the CLI is insecure. Use --password-stdin. permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/auth": dial unix /var/run/docker.sock: connect: permission denied ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/registry.cn-hangzhou.aliyuncs.com/yajun-test/jcds-app-server/push?tag=41": dial unix /var/run/docker.sock: connect: permission denied
时间: 2023-08-27 11:17:50 浏览: 209
这个错误提示是关于 Docker 的权限问题,可能是当前用户没有足够的权限来访问 Docker。建议您检查一下当前用户对于 Docker 的访问权限是否正确,或者尝试使用 sudo 命令来执行相关操作。此外,您也可以考虑使用 --password-stdin 参数来代替 --password 参数,以增强安全性。
阅读全文