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]
1 Answer 1
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.
5 Comments
podman run hello-world work?Explore related questions
See similar questions with these tags.