Pulling hyperledger/fabric-couchdb:amd64-0.4.13
Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-couchdb/manifests/amd64-0.4.13: read tcp 10.0.2.15:47240->54.175.43.85:443: read: connection reset by peer
申请时: vagrant @ vagrant:/ vagrant / bin $ ./ get-docker-images.sh
我正在Windows 8上的Ubuntu 16.04上使用VM虚拟工具箱
有人知道如何解决该问题吗?
get-docker-images.sh的内容:
# set the default Docker namespace and tag
DOCKER_NS=hyperledger
ARCH=amd64
VERSION=1.3.0
BASE_DOCKER_TAG=amd64-0.4.13
# set of Hyperledger Fabric images
FABRIC_IMAGES=(fabric-peer fabric-orderer fabric-ccenv fabric-tools)
for image in ${FABRIC_IMAGES[@]}; do
echo "Pulling ${DOCKER_NS}/$image:${ARCH}-${VERSION}"
docker pull ${DOCKER_NS}/$image:${ARCH}-${VERSION}
done
THIRDPARTY_IMAGES=(fabric-kafka fabric-zookeeper fabric-couchdb fabric-baseos)
for image in ${THIRDPARTY_IMAGES[@]}; do
echo "Pulling ${DOCKER_NS}/$image:${BASE_DOCKER_TAG}"
docker pull ${DOCKER_NS}/$image:${BASE_DOCKER_TAG}
done
已执行的命令:
vagrant@vagrant:/vagrant/bin$ ./get-docker-images.sh
Pulling hyperledger/fabric-peer:amd64-1.3.0
amd64-1.3.0: Pulling from hyperledger/fabric-peer
Digest: sha256:c521647ccedf6e02a737e20ee66d6957293c8d85c2f272bf7b62fae1e2be81a5
Status: Image is up to date for hyperledger/fabric-peer:amd64-1.3.0
Pulling hyperledger/fabric-orderer:amd64-1.3.0
amd64-1.3.0: Pulling from hyperledger/fabric-orderer
Digest: sha256:510e0baa4d5df084f7e1de8072f2be6f0db766d668a8932b3eef19c3e9d65399
Status: Image is up to date for hyperledger/fabric-orderer:amd64-1.3.0
Pulling hyperledger/fabric-ccenv:amd64-1.3.0
amd64-1.3.0: Pulling from hyperledger/fabric-ccenv
Digest: sha256:ea988663d2af2e392d686524f2d7a7ab70ee4ee783c50792b5bc9745450d776d
Status: Image is up to date for hyperledger/fabric-ccenv:amd64-1.3.0
Pulling hyperledger/fabric-tools:amd64-1.3.0
amd64-1.3.0: Pulling from hyperledger/fabric-tools
Digest: sha256:638a53bba0582adf71c08ba3658b5d05d79f49c44f38344cca7ede10dbab3290
Status: Image is up to date for hyperledger/fabric-tools:amd64-1.3.0
Pulling hyperledger/fabric-kafka:amd64-0.4.13
amd64-0.4.13: Pulling from hyperledger/fabric-kafka
Digest: sha256:892f3ce913ea826d842bbe7e1babecf9194e873168d563c23668866d2fd29600
Status: Image is up to date for hyperledger/fabric-kafka:amd64-0.4.13
Pulling hyperledger/fabric-zookeeper:amd64-0.4.13
amd64-0.4.13: Pulling from hyperledger/fabric-zookeeper
Digest: sha256:f2c0d4a4d73614e34e0161929d7571a72bc379034c704eb170c80b7acde97d92
Status: Image is up to date for hyperledger/fabric-zookeeper:amd64-0.4.13
Pulling hyperledger/fabric-couchdb:amd64-0.4.13
Error response from daemon: Get https://registry-1.docker.io/v2/hyperledger/fabric-couchdb/manifests/amd64-0.4.13: read tcp 10.0.2.15:47024->54.175.43.85:443: read: connection reset by peer
答案 0 :(得分:0)
我找到了解决方案: 更改虚拟机的DNS设置 指向Google DNS
dns-nameservers 8.8.8.8 8.8.4.4
然后
vagrant halt
vagrant up
,但我们需要在不同的时间尝试 良好的互联网速度
通过以下命令打开 / etc / network / interfaces 文件:sudo vi /etc/network/interfaces
并指向Google DNS
interfaces文件应如下所示:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
pre-up sleep 2
dns-nameservers 8.8.8.8 8.8.4.4