Use secure or insecure connections
Configure secure or insecure flags when pruning images to communicate with image registries. Setting custom CA certificates or bypassing HTTPS verification prevents connection failures during pruning.
The secure connection is the preferred and recommended approach. It is done over
HTTPS protocol with a mandatory certificate verification. The prune command
always attempts to use it if possible. If it is not possible, in some cases it
can fall-back to insecure connection, which is dangerous. In this case, either
certificate verification is skipped or plain HTTP protocol is used.
The fall-back to insecure connection is allowed in the following cases unless
--certificate-authority is specified:
-
The
prunecommand is run with the--force-insecureoption. -
The provided
registry-urlis prefixed with thehttp://scheme. -
The provided
registry-urlis a local-link address orlocalhost. -
The configuration of the current user allows for an insecure connection. This can be caused by the user either logging in using
--insecure-skip-tls-verifyor choosing the insecure connection when prompted.
|
|
If the registry is secured by a certificate authority different from the one used by Red Hat OpenShift Container Platform, it must be specified using the
|