If you encounter signature verification errors when pulling Red Hat UBI images during multi-architecture builds, you have two options:
Create or edit /etc/containers/policy.json:
sudo mkdir -p /etc/containers
sudo tee /etc/containers/policy.json > /dev/null <<EOF
{
"default": [
{
"type": "insecureAcceptAnything"
}
],
"transports": {
"docker-daemon": {
"": [{"type": "insecureAcceptAnything"}]
}
}
}
EOFpodman login registry.redhat.ioEnter your Red Hat account credentials when prompted.