Docker-Distribution: cannot pull from different machine (FATA[0000] Error: image sample-web-app:latest not found) -
i've installed private docker repository docker distribution registry (not old docker-registry). can query api machine , see pushed image, can't pull it.
on machine have installed docker distribution container:
sudo docker run --name=registry --restart=always -d -p 5000:5000 registry:2.0
i've created , pushed image on machine a.
$ sudo docker push 192.168.0.14:5000/sample-web-app push refers repository [192.168.0.14:5000/sample-web-app] (len: 1) ab8ada80460c: image exists efe2cfd1b891: image pushed 5a1f4c3d95f7: image pushed 2f20cd8c82e9: image pushed 6996ab83c944: image pushed f11858d1ad30: image pushed 77820c2410c3: image exists 8f4c453a5ccf: image pushed 78214790fb9d: image exists 5ab0027638b0: image exists 78e0f5c7f8cc: image pushed 75631aa15af4: image pushed 8d2d7c43813c: image pushed 389061f16e00: image pushed 66e6b2b8450d: image pushed 22ffb090109d: image pushed 41f8e45936c6: image pushed fd15f8f632ed: image pushed e7e61dab0443: image pushed facfdaf41727: image exists 07f8e8c5e660: image exists 37bea4ee0c81: image pushed a82efea989f9: image pushed e9e06b06e14c: image pushed digest: sha256:bcb172fe60efa418b8f0240346314a43a74f841882653a30e372c2d59a84dfe6
then deleted local image on machine a.
$sudo docker rmi 192.168.0.14:5000/sample-web-app untagged: 192.168.0.14:5000/sample-web-app:latest deleted: ab8ada80460c055c637b77691f1dbe67e6377c29dfd06c820596f0247dd401f1 deleted: efe2cfd1b891d94ab99b82c0d661b3af9d22a216379de596836bb365b618653a deleted: 5a1f4c3d95f72c3b50bd2e3df477cdb6e3e1793d8b96199572fba075a197a642
i pulled image on machine a.
$ sudo docker pull 192.168.0.14:5000/sample-web-app latest: pulling 192.168.0.14:5000/sample-web-app 5a1f4c3d95f7: pull complete efe2cfd1b891: pull complete ab8ada80460c: exists e9e06b06e14c: exists a82efea989f9: exists 37bea4ee0c81: exists 07f8e8c5e660: exists facfdaf41727: exists e7e61dab0443: exists fd15f8f632ed: exists 41f8e45936c6: exists 22ffb090109d: exists 66e6b2b8450d: exists 389061f16e00: exists 8d2d7c43813c: exists 75631aa15af4: exists 78e0f5c7f8cc: exists 5ab0027638b0: exists 78214790fb9d: exists 8f4c453a5ccf: exists 77820c2410c3: exists f11858d1ad30: exists 6996ab83c944: exists 2f20cd8c82e9: exists digest: sha256:bcb172fe60efa418b8f0240346314a43a74f841882653a30e372c2d59a84dfe6 status: downloaded newer image 192.168.0.14:5000/sample-web-app:latest
i can reach registry running on container on machine machine b, cannot pull it.
$ curl http://192.168.0.14:5000/v2/sample-web-app/tags/list {"name":"sample-web-app","tags":["latest"]} $ docker pull 192.168.0.14:5000/sample-web-app pulling repository 192.168.0.14:5000/sample-web-app fata[0000] error: image sample-web-app:latest not found $ docker version client version: 1.5.0 client api version: 1.17 go version (client): go1.3.3 git commit (client): a8a31ef-dirty os/arch (client): linux/amd64 server version: 1.5.0 server api version: 1.17 go version (server): go1.3.3 git commit (server): a8a31ef-dirty
Comments
Post a Comment