Merge pull request #10799 from ahmetalpbalkan/win-cli/TestRmiForceWithExistingContainers-fix
integration-cli: fix test to use busybox outside container
This commit is contained in:
commit
c33ac6067c
1 changed files with 6 additions and 1 deletions
|
@ -102,7 +102,12 @@ func TestRmiTagWithExistingContainers(t *testing.T) {
|
|||
|
||||
func TestRmiForceWithExistingContainers(t *testing.T) {
|
||||
image := "busybox-clone"
|
||||
if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "build", "--no-cache", "-t", image, "/docker-busybox")); err != nil {
|
||||
|
||||
cmd := exec.Command(dockerBinary, "build", "--no-cache", "-t", image, "-")
|
||||
cmd.Stdin = strings.NewReader(`FROM busybox
|
||||
MAINTAINER foo`)
|
||||
|
||||
if out, _, err := runCommandWithOutput(cmd); err != nil {
|
||||
t.Fatalf("Could not build %s: %s, %v", image, out, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue