Welcome to the Linux Foundation Forum!

Lab 3.2 Step 8 sudo podman pull alpine fails


Hi all:

In lab 3.2 when I get to step 8 "sudo podman pull alpine"

it fails with this error:

Error: error pulling image "alpine": unable to pull alpine: image name provided is a short name and no search registries are defined in the registries config file.

I already edited /etc/containers/registries.conf.d/registry.conf in step 4, and added the lines

location = "" #<-- Edit this line to use registry IP:port
insecure = true

with my IP address:port.

Also, I am wondering if it could be related to the file /etc/containerd/config.toml
That file exists on my VM but it doesn't have any lines like


like in the example. I added the lines

[plugins."io.containerd.grpc.v1.cri".registry.mirrors."*"] #<-- Add these two lines
endpoint = [""] #<-- YOUR registry IP

like it says but that doesn't fix it. Can someone share what the complete config.toml file is supposed to have in it?



  • chrispokorni
    chrispokorni Posts: 2,190

    Hi @rrichar1975,

    Would you mind double checking line number 151 of the /etc/containerd/config.toml file? That is where the [plugins."io.containerd.grpc.v1.cri".registry.headers] entry should be found, followed by [plugins."io.containerd.grpc.v1.cri".registry.mirrors] on line number 153.

    In addition, it is important to preserve the proper indentation of this file while adding the required two lines.



Upcoming Training