diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-07-21 10:12:03 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-07-22 13:42:56 -0400 |
commit | a5f5e45c4b08f2c74409194836d6fb7aa05fa4c1 (patch) | |
tree | c2e0791a88c2d6ae7938c0f1a8192fceb9131759 /cmd/podman/images/push.go | |
parent | 092ff38129cd31badda0ed8801a89f3c032fa08b (diff) | |
download | podman-a5f5e45c4b08f2c74409194836d6fb7aa05fa4c1.tar.gz podman-a5f5e45c4b08f2c74409194836d6fb7aa05fa4c1.tar.bz2 podman-a5f5e45c4b08f2c74409194836d6fb7aa05fa4c1.zip |
Add noop function disable-content-trust
People who use docker scripts with Podman see failures
if they use disable-content-trust flag. This flag already
existed for podman build, adding it to pull/push/create/run.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/images/push.go')
-rw-r--r-- | cmd/podman/images/push.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go index fd91ab0ab..c25c33784 100644 --- a/cmd/podman/images/push.go +++ b/cmd/podman/images/push.go @@ -77,6 +77,7 @@ func pushFlags(flags *pflag.FlagSet) { flags.BoolVar(&pushOptions.Compress, "compress", false, "Compress tarball image layers when pushing to a directory using the 'dir' transport. (default is same compression type as source)") flags.StringVar(&pushOptions.CredentialsCLI, "creds", "", "`Credentials` (USERNAME:PASSWORD) to use for authenticating to a registry") flags.StringVar(&pushOptions.DigestFile, "digestfile", "", "Write the digest of the pushed image to the specified file") + flags.Bool("disable-content-trust", false, "This is a Docker specific option and is a NOOP") flags.StringVarP(&pushOptions.Format, "format", "f", "", "Manifest type (oci, v2s1, or v2s2) to use when pushing an image using the 'dir' transport (default is manifest type of source)") flags.BoolVarP(&pushOptions.Quiet, "quiet", "q", false, "Suppress output information when pushing images") flags.BoolVar(&pushOptions.RemoveSignatures, "remove-signatures", false, "Discard any pre-existing signatures in the image") |