Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"docker pull xxx" always failed on MacOS 15.0.1 #1172

Open
1 of 5 tasks
neoalvin opened this issue Oct 23, 2024 · 6 comments
Open
1 of 5 tasks

"docker pull xxx" always failed on MacOS 15.0.1 #1172

neoalvin opened this issue Oct 23, 2024 · 6 comments

Comments

@neoalvin
Copy link

neoalvin commented Oct 23, 2024

Description

There is the error message when execute command "docker pull xxx":

Using default tag: latest
Error response from daemon: Head "https://registry-1.docker.io/v2/library/mysql/manifests/latest": Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Fmysql%3Apull&service=registry.docker.io": http: server gave HTTP response to HTTPS client

Version

colima version 0.7.5
git commit: 1588c06

runtime: docker
arch: aarch64
client: v27.3.1
server: v27.1.1
limactl version 0.23.2
qemu-img version 9.1.1
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

macOS: 15.0.1 (24A348)

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/alvin/.colima/default/docker.sock

Reproduction Steps

  1. brew install colima
  2. colima start
  3. docker pull mysql

Expected behaviour

Additional context

@neoalvin neoalvin changed the title "docker pull" always failed on MacOS 15.0.1 "docker pull xxx" always failed on MacOS 15.0.1 Oct 23, 2024
@abiosoft
Copy link
Owner

Are other docker commands working fine? e.g. docker info, docker version, docker images.

@neoalvin
Copy link
Author

Are other docker commands working fine? e.g. docker info, docker version, docker images.

Yes, other Docker commands are running well

@KevinHuang40856
Copy link

same macos 15.0.1, colima 0.7.5, no issue with running docker pull. however the output of colima version is different from yours - the client : v24.0.2

`❯ colima version
colima version v0.7.5
git commit: 1588c06

runtime: docker
arch: aarch64
client: v24.0.2
server: v27.1.1

❯ colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/si565819/.colima/default/docker.sock

❯ docker version
Client: Docker Engine - Community
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfcd85
Built: Thu May 25 20:26:27 2023
OS/Arch: darwin/arm64
Context: colima

Server: Docker Engine - Community
Engine:
Version: 27.1.1
API version: 1.46 (minimum version 1.24)
Go version: go1.21.12
Git commit: cc13f95
Built: Tue Jul 23 20:00:07 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.7.19
GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
runc:
Version: 1.7.19
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0

❯ docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
8b4274ea61c5: Downloading [===> ] 3.419MB/47.91MB
08ba006fa9b4: Download complete
92a1aa4ee2ea: Download complete
df48654477e3: Waiting
a3bc7a62e19a: Waiting
806ebf9b9401: Waiting
b037f0555e71: Waiting
0cace4982789: Waiting
29ead6e17e26: Waiting
d624aa804ccd: Waiting`

@KevinHuang40856
Copy link

now output of colima version is same , still no issue to run docker pull

`❯ colima version
colima version v0.7.5
git commit: 1588c06

runtime: docker
arch: aarch64
client: v27.3.1
server: v27.1.1

❯ docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
8b4274ea61c5: Downloading [==> ] 1.966MB/47.91MB
08ba006fa9b4: Download complete
92a1aa4ee2ea: Download complete
df48654477e3: Waiting
a3bc7a62e19a: Waiting
806ebf9b9401: Waiting
b037f0555e71: Waiting
0cace4982789: Waiting
29ead6e17e26: Waiting
d624aa804ccd: Waiting`

@VGerris
Copy link

VGerris commented Nov 15, 2024

see if you have the dns name you use in a host file or DNS, because it should not go to HTTP.
For DNS issues : #711
generic:
https://stackoverflow.com/questions/49674004/docker-repository-server-gave-http-response-to-https-client

This does not seem like a colima issue, you could also try to remove the container and pull again.
If resolved, please close this issue, thank you.

@rstrlcpy
Copy link

my case

Sequoia 15.2 (24C101)
colima version
colima version 0.8.0
git commit: 9c08cff339f087c0600d9d56af7b5fbcfe02e287

runtime: docker
arch: aarch64
client: v27.4.0
server: v27.4.1

something definitely wrong with resolving.

$ docker pull alpine:3.17
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: no such host

$ colima ssh
roman@colima:/$ curl ifconfig.me
curl: (6) Could not resolve host: ifconfig.me

if I try to run the command multiple time then at some point it starts to work.

$ docker pull alpine:3.17
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: no such host
roman@ip-10-8-100-40 ~/
$ docker pull alpine:3.17
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: no such host
roman@ip-10-8-100-40 ~/
$ docker pull alpine:3.17
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: no such host
roman@ip-10-8-100-40 ~/
$ docker pull alpine:3.17
Error response from daemon: Head "https://registry-1.docker.io/v2/library/alpine/manifests/3.17": Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Falpine%3Apull&service=registry.docker.io": dial tcp: lookup auth.docker.io on 127.0.0.53:53: no such host
roman@ip-10-8-100-40 ~/
$ docker pull alpine:3.17
3.17: Pulling from library/alpine
61254a502902: Pull complete 
Digest: sha256:8fc3dacfb6d69da8d44e42390de777e48577085db99aa4e4af35f483eb08b989
Status: Downloaded newer image for alpine:3.17
docker.io/library/alpine:3.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@abiosoft @VGerris @rstrlcpy @neoalvin @KevinHuang40856 and others