You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devops-agent:~# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: zouchengli
Password:
Login Succeeded
devops-agent:~# docker push zouchengli/javabase:0.8.0
The push refers to repository [docker.io/zouchengli/javabase]
dbfb506952bc: Preparing
8a6d769dbc98: Preparing
c360e15dce29: Preparing
1e8448e73a9b: Preparing
b57c79f4a9f3: Preparing
d60e01b37e74: Waiting
e45cfbc98a50: Waiting
762d8e1a6054: Waiting
denied: requested access to the resource is denied
I have the same problem with proxy(can't pull) and hosted(can't push) type
I run jenkins using vagrant with private ip. Maven and gradle works but docker doesn't
added
daemon.json
{
"insecure-registries" : ["100.0.0.16:5555", "100.0.0.16:7777"]
}
then
restart docker
login for both and even tried separately and checked config.json
<docker login -u username -p password host:port>
100.0.0.16:5555 - hosted
100.0.0.16:7777 - proxy
of course role and user with credentials
Activity
zouchengli commentedon Nov 16, 2023
devops-agent:~# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: zouchengli
Password:
Login Succeeded
devops-agent:~# docker push zouchengli/javabase:0.8.0
The push refers to repository [docker.io/zouchengli/javabase]
dbfb506952bc: Preparing
8a6d769dbc98: Preparing
c360e15dce29: Preparing
1e8448e73a9b: Preparing
b57c79f4a9f3: Preparing
d60e01b37e74: Waiting
e45cfbc98a50: Waiting
762d8e1a6054: Waiting
denied: requested access to the resource is denied
zouchengli commentedon Nov 16, 2023
devops-agent:~# docker-credential-pass list
{"docker-releases.x.x.com":"x-devops","https://index.docker.io/v1/":"zouchengli"}
zouchengli commentedon Nov 16, 2023
devops-agent:~# docker info
Client:
Version: 24.0.5
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 11
Server Version: 24.0.5
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version:
runc version:
init version:
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.15.85-1-pve
Operating System: Ubuntu 23.04
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 8GiB
Name: x-devops-agent
ID: c46981fd-09e1-4239-95e1-3129391ac89c
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
VSVDEv commentedon Jan 31, 2024
I have the same problem with proxy(can't pull) and hosted(can't push) type
I run jenkins using vagrant with private ip. Maven and gradle works but docker doesn't
added
daemon.json
{
"insecure-registries" : ["100.0.0.16:5555", "100.0.0.16:7777"]
}
then
restart docker
login for both and even tried separately and checked config.json
<docker login -u username -p password host:port>
100.0.0.16:5555 - hosted
100.0.0.16:7777 - proxy
of course role and user with credentials
"docker pull 100.0.0.16:7777/nginx
Using default tag: latest
Error response from daemon: Head "http://100.0.0.16:7777/v2/nginx/manifests/latest": no basic auth credentials"
"docker push 100.0.0.16:5555/micro:1
The push refers to repository [100.0.0.16:5555/micro]
2fd0c7265f41: Preparing
83b767b06655: Preparing
14fbd8039ba4: Preparing
da55b45d310b: Preparing
no basic auth credentials"
Nexus version OSS 3.60.0-02
jiaopengzi commentedon Jun 30, 2024
me too.
docker version
linux version
~/.docker/config.json{ "auths": { "https://foo.com:5000": {} }, "credsStore": "pass" }The last resort is to delete to successfully
push.