0

I am trying to pull an image that exist with the tag specified

https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/python/tags

but getting an error :

podman pull mcr.microsoft.com/devcontainers/python:3.9-bullseye
Trying to pull mcr.microsoft.com/devcontainers/python:3.9-bullseye...
Error: initializing source docker://mcr.microsoft.com/devcontainers/python:3.9-bullseye: pinging container registry mcr.microsoft.com: Get "https://mcr.microsoft.com/v2/": dial tcp: lookup mcr.microsoft.com: no such host
ping mcr.microsoft.com
PING mcr-0001.mcr-msedge.net (150.171.70.10): 56 data bytes
64 bytes from 150.171.70.10: icmp_seq=0 ttl=116 time=15.035 ms
64 bytes from 150.171.70.10: icmp_seq=1 ttl=116 time=11.670 ms
64 bytes from 150.171.70.10: icmp_seq=2 ttl=116 time=16.970 ms
$ cd ${HOME}/.config/containers
USMAJY44F4QXP7M:containers$ ls -al
total 16
-rw------- auth.json
drwxr-xr-x podman
-rw-r--r-- podman-connections.json
-rw-r--r--@ podman-connections.json.lock

This is the first time I am trying to use podman, earlier the command worked with docker.

This works fine

podman run hello-world
!... Hello Podman World ...!
 .--"--.
 / - - \
 / (O) (O) \
 ~~~| -=(,Y,)=- |
 .---. /` \ |~~
 ~/ o o \~~~~.----. ~~
 | =(X)= |~ / (O (O) \
 ~~~~~~~ ~| =(Y_)=- |
 ~~~~ ~~~| U |~~
Project: https://github.com/containers/podman
Website: https://podman.io
Desktop: https://podman-desktop.io
Documents: https://docs.podman.io
YouTube: https://youtube.com/@Podman
X/Twitter: @Podman_io
Mastodon: @[email protected]
asked Feb 11, 2025 at 17:23

1 Answer 1

0

The error message indicates that mcr.microsoft.com is not resolvable on your podman host.

You could try to resolve the address. Preferably with dig or host, but ping mcr.microsoft.com should also tell you if there is an issue with name resolution.

If that indicates it cannot resolve the name, check if it can resolve other common names (e.g. www.google.com) and go figure out what's wrong with your DNS.

answered Feb 11, 2025 at 17:46
Sign up to request clarification or add additional context in comments.

5 Comments

ping mcr.microsoft.com works fine @Andreas Rogge
that's weird. Can you pull the hello-world container? i.e. does podman run hello-world work?
podman run hello-world works fine @Andreas Rogge
if hello-world works now, maybe the original container-image you tried works, too?
it does not, same error still

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.