diff --git a/test/integration/roles/test_docker/tasks/registry-tests.yml b/test/integration/roles/test_docker/tasks/registry-tests.yml index fea9bdabf70..e8f0596171d 100644 --- a/test/integration/roles/test_docker/tasks/registry-tests.yml +++ b/test/integration/roles/test_docker/tasks/registry-tests.yml @@ -20,7 +20,7 @@ command: "docker push localhost:5000/mine" - name: Remove the busybox image from the local docker - command: "docker rmi -f busybox" + command: "docker rmi -f {{ image_id.stdout_lines[0] }}" - name: Remove the new image from the local docker command: "docker rmi -f localhost:5000/mine"