赞
踩
错误信息
Unable to find image 'image-name:tag' locally
docker: Error response from daemon: pull access denied for image-name, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
解决方法
错误信息
Error response from daemon: Get https://registry-1.docker.io/v2/library/image-name/manifests/tag: net/http: TLS handshake timeout
解决方法
ping
命令或者curl
命令测试连接。错误信息
docker: Error response from daemon: driver failed programming external connectivity on endpoint container-name (hash): Error starting userland proxy: Bind for 0.0.0.0:port failed: port is already allocated.
解决方法
错误信息
Error response from daemon: Cannot start container container-name: failed to create endpoint endpoint-name on network network-name: Bind for 0.0.0.0:port failed: port is already allocated.
解决方法
错误信息
docker: Error response from daemon: Mounts denied:
The path /host/path is not shared from OS X and is not known to Docker.
解决方法
错误信息
Step 1/7 : FROM base-image:tag
Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
解决方法
错误信息
Error response from daemon: Cannot stop container: container-name: Cannot kill container container-name: container container-name is not running.
解决方法
错误信息
Error response from daemon: No space left on device
解决方法
以上是 Docker 常见的错误和异常,通过了解这些错误和异常的原因及解决方法,可以提高使用 Docker 的效率和安全性。在使用 Docker 时,我们还应该注意保持 Docker 系统和镜像的更新,及时清理不必要的资源,以避免出现不必要的错误和异常。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。