SakthiSureshAnand
SakthiSureshAnand

Reputation: 1362

Docker Push has failed in Red Hat Server with error "**denied: requested access to the resource is denied**"

I am new bee to docker concepts . I have been trying the samples of creating images and push in docker hub on red hat server. I used below command to push my image to hub (Note : i dont have any special char to my image name)

docker push registry.hub.docker.com/ssqaapt/first-img-sample

I am facing an below error when I push the image to docker hub repo .

    [root@p01 simple-web-app]# docker push registry.hub.docker.com/ssaapt/wipro-first-img-sample
The push refers to a repository [registry.hub.docker.com/ssaapt/first-img-sample]
673be84d418c: Preparing
....
b6a02001ba33: Waiting
....
denied: requested access to the resource is denied

I tried the push after i have logged my docker acc using ths cmd docker login . Please suggest me if i have done anything wrong or do i need any configuration change . I verified this link(denied: requested access to the resource is denied : docker) as well but no luck .

Upvotes: 1

Views: 4226

Answers (1)

Amit
Amit

Reputation: 11

  1. Go to /etc/containers/registries.conf
  2. Add/Replace ‘registry.hub.docker.com’ for [registries.search] and [registries.insecure]section.

  3. Restart your docker

    • $ systemctl stop docker
    • $ systemctl start docker
    • $ docker login-
      1. Execute the push command and it should work.

Upvotes: 1

Related Questions