-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
registry-mirrors
not affecting docker-compose
#24097
Comments
Go with a couple of simple questions first?
|
Yes, I have run
Yes.
No, running this as unprivileged user will use the origin registry (registry-1.docker.io) and fail. By the way, I just tried running this as root, it works. Does |
Yes podman --remote pull and docker-compose both use the podman socket. Rootless mode is not using the rootful podman socket. To restart it. |
I'm using Alpine Linux, so there's no I found Thanks for your kindly help! |
Issue Description
For unfortunate reasons, DockerHub is currently unable to connect directly in Chinese Mainland. So I set up a registry mirror and configure
podman
to use the mirror.My
/etc/containers/registries.conf
file is similar with this:(private mirror url replaced with public alternative)
After this,
podman pull
can properly connect to the registry mirror and fetch images. Butpodman compose pull
, which launchesdocker-compose
, does not work. Error message:It seems that
docker-compose
never know about the registry mirror set in/etc/containers/registries.conf
and (tellpodman
to or itself?) connect to DockerHub directly.Steps to reproduce the issue
Steps to reproduce the issue
podman
,podman-docker
./etc/containers/registries.conf
.podman --log-level=debug pull nginx:alpine
to check podman can pull image from the mirror.docker-compose.yml
.podman compose pull
, which could not work and reproduces the issue.Describe the results you received
Describe the results you received
podman compose pull
(docker-compose
) does not use podman registry mirrors.Describe the results you expected
Describe the results you expected
podman compose pull
(docker-compose
) should use registry mirrors, alikepodman pull
does.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
docker-compose --version
:Docker Compose version v2.24.6
What I have installed on my Alpine Linux via
apk
:Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: