From 4714ee159af98fcfbd236017f63f90b1fa5d7a46 Mon Sep 17 00:00:00 2001 From: yahav Date: Thu, 15 Feb 2018 11:36:59 +0200 Subject: [PATCH] Fix docker images and docker parent commands --- jfrog-cli/artifactory/utils/docker/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jfrog-cli/artifactory/utils/docker/docker.go b/jfrog-cli/artifactory/utils/docker/docker.go index 5882aee3d..ac779453c 100644 --- a/jfrog-cli/artifactory/utils/docker/docker.go +++ b/jfrog-cli/artifactory/utils/docker/docker.go @@ -107,9 +107,9 @@ func (getImageId *getImageIdCmd) GetCmd() *exec.Cmd { var cmd []string cmd = append(cmd, "docker") cmd = append(cmd, "images") - cmd = append(cmd, getImageId.image.tag) cmd = append(cmd, "--format", "{{.ID}}") cmd = append(cmd, "--no-trunc") + cmd = append(cmd, getImageId.image.tag) return exec.Command(cmd[0], cmd[1:]...) } @@ -133,8 +133,8 @@ func (getImageId *getParentId) GetCmd() *exec.Cmd { var cmd []string cmd = append(cmd, "docker") cmd = append(cmd, "inspect") - cmd = append(cmd, getImageId.image.tag) cmd = append(cmd, "--format", "{{.Parent}}") + cmd = append(cmd, getImageId.image.tag) return exec.Command(cmd[0], cmd[1:]...) }