JRehkemper.de

Podman Configure Insecure Registry

If you want to pull container-images from an insecure registry with podman, you need to configure podman to allow this insecure registry.

Otherwise, you get this error

error pinging docker registry my-registry.local:5000: Get "https://my-registry.local:5000/v2/": http: server gave HTTP response to HTTPS client

Temporary Solution

The temporary solution is just to add the --tls-verify=false flag to your commands.

podman push --tls-verify=false <image>

Permanent Solution

Linux

The registry-configurations are located under /etc/containers/registries.conf.d/.
If you want to add a new registry simply add a new file that ends in .conf. The Filename can be the name of the registry, but this is not required, as long as the file ends with .conf.

Open the file and specify the following lines.

vim /etc/containers/registries.conf.d/my-registry.local.conf

[[registry]]
location = "my-registry.local:5000"
insecure = true

After that you can push and pull images without an error.

Mac

If you are using Podman on a mac, you will need to edit the configuration in the virtual machine.
Therefor you need to connect to the vm

podman machine ssh

and edit the configuration file there.

$ sudo vim /etc/containers/registries.conf.d/my-registry.local.yaml

After that is should work, just like on Linux.

profile picture of the author

Jannik Rehkemper

I'm an professional Linux Administrator and Hobby Programmer. My training as an IT-Professional started in 2019 and ended in 2022. Since 2023 I'm working as an Linux Administrator.