can't pull docker tomcat image - docker

after login in docker also cant pull image and see this error:
unauthorized: authentication required
$ docker pull tomcat:latest
latest: Pulling from library/tomcat
57df1a1f1ad8: Pull complete
71e126169501: Pull complete
1af28a55c3f3: Pull complete
03f1c9932170: Downloading  40.37MB/51.83MB
881ad7aafb13: Download complete
9c0ffd4062f3: Download complete
bd62e479351a: Downloading  29.71MB/196.2MB
48ee8bc64dbc: Downloading
6daad3485ea7: Waiting
bc07a0199230: Waiting
unauthorized: authentication required

Related

Paketo pack build failing with registry-1.docker.io/v2/: EOF

I am trying to run "pack build" (using Paketo as buildpacks provider) in an environment where I do not have direct access to "registry-1.docker.io". Access to the external docker registry is provided via an internal proxy endpoint.
When running the command
pack build paketo-demo-app --builder my-dockerhub-proxy.company.com/paketobuildpacks/builder:base
I see that it fails to load the run-image because registry location reverts back to the default. See logs below
base: Pulling from paketobuildpacks/builder
10a039f4d1c5: Pull complete
281985c8fc9f: Pull complete
72ad9888618d: Pull complete
4f4fb700ef54: Pull complete
....
Digest: sha256:07fe9a8fca80c2259062f1400ccc856caa896428d93d5d8c60b6b6fd2480c07e
Status: Downloaded newer image for my-dockerhub-proxy.company.com/paketobuildpacks/builder:base
ERROR: failed to build: invalid run-image 'index.docker.io/paketobuildpacks/run:base-cnb': Error response from daemon: Get https://registry-1.docker.io/v2/: EOF
Is there a Paketo configuration parameter that can override the docker registry location ?

rpc error: code = Unknown desc = error pulling image configuration: unknown blob when pull docker image

I am pulling image from my local docker registry provider by nexus 3 in kubernetes cluster, but throw this error:
Failed to pull image "192.168.31.2:8080/goharbor/harbor-portal:v2.0.1": rpc error: code = Unknown desc = error pulling image configuration: unknown blob
when I execute this command using docker in k8sslave3 host machine:
[root#k8sslave3 ~]# sudo docker pull 192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
v2.0.1: Pulling from goharbor/harbor-portal
a10779388d4e: Pulling fs layer
b3655b0b1b25: Pulling fs layer
0c2039460571: Pulling fs layer
7ea51f62bc90: Waiting
9b7d884050ac: Waiting
191f5a91ea62: Waiting
a0935490d8f5: Waiting
dd7dc6b4b30d: Waiting
502017fcbb22: Waiting
error pulling image configuration: unknown blob
I am read the question and tell me the docker image does not exists. But when I execute pull in 192.168.31.2, the output like this:
[dolphin#localhost docker]$ sudo docker pull 192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
[sudo] password for dolphin:
v2.0.1: Pulling from goharbor/harbor-portal
Digest: sha256:d40f87352700cde0f91b9f758b3e47c9ebfe4358f73fa26a6675415b3fbc6b96
Status: Image is up to date for 192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
so now I am confusing, what should I do to fix this problem? this is the docker image in nexus repository:
I am read the question and tell me the docker image does not exists.
But when I execute pull in 192.168.31.2, the output like this:
[dolphin#localhost docker]$ sudo docker pull 192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
[sudo] password for dolphin:
v2.0.1: Pulling from goharbor/harbor-portal
Digest: sha256:d40f87352700cde0f91b9f758b3e47c9ebfe4358f73fa26a6675415b3fbc6b96
Status: Image is up to date for 192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
That is rather expected that it works if you pull the image from the host that hosts the registry.
As you created the tag from that host, the Docker client doesn't need to pull anything from the private registry, it returns directly the image from the local Docker registry of the host.
Look at the message :
Status: Image is up to date for
192.168.31.2:8080/goharbor/harbor-portal:v2.0.1
Your image configuration/data is very probably corrupted in the registry.
Try to reupload it and check also that its size is not too big (several GBs may be too much sometimes) because it may create some troubles in registry uploading/storing.

Dockerhub image pull error due to image registry unavailable

I cannot pull hello world image and other images just after 15:00 CST today but can do that yesterday and this morning CST.
$docker pull hello-world
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fhello-world%3Apull&service=registry.docker.io: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
May I know how to fix it?
It is working now...
- $ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Not sure what happened.

On GCP Docker image pulling got an error: Untar error on re-exec cmd: fork/exec /proc/self/exe: stale NFS file handle

In Console of Google Cloud Platform I try to pull and setup a Docker image:
sudo docker pull nginx:1.10.0 but falling into an error:
~$ sudo docker pull nginx:1.10.0
1.10.0: Pulling from library/nginx
51f5c6a04d83: Extracting [==================================================>] 51.36 MB/51.36 MB
a3ed95caeb02: Download complete
14ef99dba46e: Download complete
3e91b3ec524a: Download complete
FATA[0002] failed to register layer: Untar error on re-exec cmd: fork/exec /proc/self/exe: stale NFS file handle
Is an anybody experienced same issue?

failed to pull docker/whalesay from dockerhub,

i have installed docker on ubuntu14.04-64bit,when i want to run a demo,error occurs,
y7:~$ docker run docker/whalesay cowsay boo
Unable to find image 'docker/whalesay:latest' locally
Repository docker/whalesay already being pulled by another client. Waiting.
Error response from daemon: No such image: docker/whalesay (tag: latest)
7:~$ docker run docker/whalesay
Unable to find image 'docker/whalesay:latest' locally
latest: Pulling from docker/whalesay
e9e06b06e14c: Pulling fs layer
a82efea989f9: Pulling fs layer
e9e06b06e14c: Error pulling dependent layers
07f8e8c5e660: Pulling fs layer
676c4a1897e6: Pulling fs layer
5b74edbcaa5b: Pulling fs layer
1722f41ddcb5: Pulling fs layer
99da72cfe067: Pulling fs layer
5d5bd9951e26: Pulling fs layer
fb434121fc77: Download complete
fb434121fc77: Pulling image (latest) from docker/whalesay, endpoint: https://regfb434121fc77: Error pulling image (latest) from docker/whalesay, endpoint: https://registry-1.docker.io/v1/, Server error: Status 0 whilefetching image layer (fb434121fc77: Error pulling image (latest) from docker/whalesay, Server error: Status 0 while fetching image layer (e9e06b06e14c2f7d8df0251e3bb852c3a10a70639498Error pulling image (latest) from docker/whalesay, Server error: Status 0 while fetching image layer (e9e06b06e14c2f7d8df0251e3bb852c3a10a70639498163d4f180a823c18fdfc)
The message Error response from daemon: No such image: docker/whalesay (tag: latest) is a little confusing, but the real error is the line just above it:
Repository docker/whalesay already being pulled by another client. Waiting.
If you begin pulling a repo and then controlc, the Docker daemon will hang out for a while and refuse to do further pulls on that repo.
Sometimes a system might require to have both a few local docker repos, as well as having docker images hosted on DockerHub. The best way to be assured that you are pointing the the DockerHub repo is to pull with
docker.io/<repo>/<app>
In your case, try
docker.io/docker/whalesay

Resources