pull access denied repository does not exist or may require docker login

前端 未结 16 1872
悲哀的现实
悲哀的现实 2021-02-02 05:18

I am using Laravel 4.2 with docker. I setup it on local. It worked without any problem but when I am trying to setup online using same procedure then I am getting error

相关标签:
16条回答
  • 2021-02-02 05:46

    I had the same error message but for a totally different reason.

    Being new to docker, I issued

    docker run -it <crypticalId>

    where <crypticalId> was the id of my newly created container.

    But, the run command wants the id of an image, not a container.

    To start a container, docker wants

    docker start -i <crypticalId>

    0 讨论(0)
  • 2021-02-02 05:47

    I had the same issue. In my case it was a private registry. So I had to create a secret as shown here

    and then we have to add the image pull secret to the deployment.yaml file as shown below.

    pods/private-reg-pod.yaml  
    apiVersion: v1
    kind: Pod
    metadata:
      name: private-reg
    spec:
      containers:
      - name: private-reg-container
        image: <your-private-image>
      imagePullSecrets:
      - name: regcred
    
    0 讨论(0)
  • 2021-02-02 05:47

    Just make sure to write the docker name correctly!

    In my case, I wrote (notice the extra 'u'):

    FROM ubunutu:16.04
    

    The correct docker name is:

    FROM ubuntu:16.04
    
    0 讨论(0)
  • 2021-02-02 05:47

    November 2020 and later

    If this error is new, and pulling from Docker Hub worked in the past, note Docker Hub now introduced rate limiting in Nov 2020

    You will frequently see messages like:

    Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.

    From Circle CI and other similar tools that use Docker Hub. Or:

    Error response from daemon: pull access denied for cimg/mongo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

    You'll need to specify the credentials used to fetch the image:

    For CircleCI users:

          - image: circleci/mongo:4.4.2
    
            # Needed to pull down Mongo images from Docker hub
            # Get from https://hub.docker.com/
            # Set up at https://app.circleci.com/pipelines/github/org/sapp
            auth:
              username: $DOCKERHUB_USERNAME
              password: $DOCKERHUB_PASSWORD
    
    0 讨论(0)
提交回复
热议问题