Docker Community Forums

Share and learn in the Docker community.

Docker unable to download private repository images in Oracle Linux 7.9

I’m running docker on Oracle Linux 7.9 VM. I’m using docker images from both private & public repository. I maintain private images in the docker hub. While deploying a service, it’s unable to automatically download images from the private repository. But able to auto-download images from public repository. If I manually download the private image and deploy the service, then service is coming up without any issues & working fine. But I don’t want to do manual work all the time.

It says ‘No such image’ error even though I’ve image in the docker hub. Provided docker login credentials is also correct. Adding my VM spec, syntax used and error logs below.

VM spec:
OS - Oracle Linux Server 7.9
Docker Version -
Client: Docker Engine - Community
Version: 19.03.11-ol
API version: 1.40
Go version: go1.16.2
Git commit: 2a9c376
Built: Thu Apr 15 17:54:26 2021
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.11-ol
API version: 1.40 (minimum version 1.12)
Go version: go1.16.2
Git commit: 2a9c376
Built: Thu Apr 15 17:52:47 2021
OS/Arch: linux/amd64
Experimental: false
Default Registry: docker.io
containerd:
Version: v1.3.9
GitCommit:
runc:
Version: 1.0.0-rc95
GitCommit: 2856f01
docker-init:
Version: 0.18.0
GitCommit: fec3683

Syntax to deploy a service:
docker stack deploy -c cpapp_sftplistener.yml cpapp --with-registry-auth

Error message in /var/log/messages:

Jun 29 16:10:51 ol7test01 dockerd: time=“2021-06-29T16:10:51.419256981Z” level=error msg=“Not continuing with pull after error: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n”
Jun 29 16:10:51 ol7test01 dockerd: time=“2021-06-29T16:10:51.419333289Z” level=info msg=“Ignoring extra error returned from registry: unauthorized: authentication required”
Jun 29 16:10:51 ol7test01 dockerd: time=“2021-06-29T16:10:51.419481998Z” level=error msg=“pulling image failed” error=“pull access denied for ghxdockerorg/listener-interface-sftp, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied” module=node/agent/taskmanager node.id=xb8e6g7zptkd1kinycu15pjxt service.id=2eu05ay6ceq1ygrivg7fe2jsm task.id=xut3cu8pxo3b1jpqled8vbbub
Jun 29 16:10:51 ol7test01 dockerd: time=“2021-06-29T16:10:51.423631458Z” level=error msg=“fatal task error” error=“No such image: ghxdockerorg/listener-interface-sftp:1.0.41-126” module=node/agent/taskmanager node.id=xb8e6g7zptkd1kinycu15pjxt service.id=2eu05ay6ceq1ygrivg7fe2jsm task.id=xut3cu8pxo3b1jpqled8vbbub

Every time when I do docker login, oracle docker ask password however in ~/.docker/config.json I see added auths record.