summaryrefslogtreecommitdiff
path: root/cmd/podman/save.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-05-09 12:04:28 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-10 14:56:56 +0000
commit0e58ec74747ac7fbb0dccd364765b83b212657c9 (patch)
tree4d123eb30ce8b7ef3651d38b96fb03f75e505178 /cmd/podman/save.go
parenta74107b506857b35c0ca9455177c309cd440a5aa (diff)
downloadpodman-0e58ec74747ac7fbb0dccd364765b83b212657c9.tar.gz
podman-0e58ec74747ac7fbb0dccd364765b83b212657c9.tar.bz2
podman-0e58ec74747ac7fbb0dccd364765b83b212657c9.zip
podman push should honor registries.conf
Like podman pull, when you push an image, podman should check if the registry is listed as insecure and if so, it should --tls-verify=false unless the user overrides this. Signed-off-by: baude <bbaude@redhat.com> Closes: #738 Approved by: mheon
Diffstat (limited to 'cmd/podman/save.go')
-rw-r--r--cmd/podman/save.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/save.go b/cmd/podman/save.go
index ce82b588a..c3e87f145 100644
--- a/cmd/podman/save.go
+++ b/cmd/podman/save.go
@@ -121,7 +121,7 @@ func saveCmd(c *cli.Context) error {
if err != nil {
return err
}
- if err := newImage.PushImage(getContext(), dest, manifestType, "", "", writer, c.Bool("compress"), libpodImage.SigningOptions{}, &libpodImage.DockerRegistryOptions{}); err != nil {
+ if err := newImage.PushImage(getContext(), dest, manifestType, "", "", writer, c.Bool("compress"), libpodImage.SigningOptions{}, &libpodImage.DockerRegistryOptions{}, false); err != nil {
if err2 := os.Remove(output); err2 != nil {
logrus.Errorf("error deleting %q: %v", output, err)
}