Skip to content

Can’t push to registry with self signed certificate #683

Open
@gregseth

Description

@gregseth

I’m using Singularity v3.9.0.
I have a Docker registry running with a self-signed certificate.
I managed to be able to pull images from this registry by adding the following to ~/.config/containers/registries.conf (domain.local being replaced by the actual domain):

[[registry]]
prefix = "*.domain.local"
insecure = true

But if I try to push an image to the registry I get the following error:

singularity push -U image.sif oras://registry.domain.local/image-sgl
FATAL: Unable to push image to oci registry: unable to push: failed to do request: Head "https://registry.domain.local/v2/image-sgl/blobs/sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a": x509: certificate signed by unknown authority

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions