Skip to content

Commit b1e0222

Browse files
committed
docker: allow unsigned images
* trust is using gpg keys, not really in common use outside of redhat repos https://docs.podman.io/en/latest/markdown/podman-image-trust.1.html Signed-off-by: Allen Davis <hoplin44@proton.me>
1 parent be3ec80 commit b1e0222

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sources/docker.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ func (s *docker) Run() error {
7171
systemCtx := &types.SystemContext{
7272
DockerInsecureSkipTLSVerify: types.OptionalBoolFalse,
7373
}
74-
policy, err := signature.DefaultPolicy(systemCtx)
75-
if err != nil {
76-
return fmt.Errorf("Failed to create policy: %w", err)
74+
policy := &signature.Policy{
75+
Default: []signature.PolicyRequirement{signature.NewPRInsecureAcceptAnything()},
7776
}
7877
policyCtx, err := signature.NewPolicyContext(policy)
7978
if err != nil {

0 commit comments

Comments
 (0)