Skip to content

Commit

Permalink
Fix docker images and docker parent commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Feb 15, 2018
1 parent 3516e84 commit 4714ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jfrog-cli/artifactory/utils/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]...)
}

Expand All @@ -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:]...)
}

Expand Down

0 comments on commit 4714ee1

Please sign in to comment.