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

[[registry]]
location = "10.97.60.21:5000" #<-- 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

[plugins."io.containerd.grpc.v1.cri".registry.headers]

like in the example. I added the lines

[plugins."io.containerd.grpc.v1.cri".registry.mirrors."*"] #<-- Add these two lines
endpoint = ["http://10.97.60.21:5000"] #<-- 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?

Thanks
Ryan

Comments

  • chrispokorni
    chrispokorni Posts: 2,376

    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.

    Regards,
    -Chris

Categories

Upcoming Training