From 9abd727c529c72f5a86c3e77567ae83b8dad68e8 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Fri, 29 Jan 2016 01:16:48 -0800 Subject: [PATCH] add test for run --ip Signed-off-by: Victor Vieux --- test/integration/api/run.bats | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/integration/api/run.bats b/test/integration/api/run.bats index c540170c7f..af1880dfda 100644 --- a/test/integration/api/run.bats +++ b/test/integration/api/run.bats @@ -101,6 +101,17 @@ function teardown() { [[ "${output}" == *"\"StopSignal\": \"SIGKILL\""* ]] } +@test "docker run --ip" { + start_docker_with_busybox 1 + swarm_manage + + docker_swarm network create -d bridge --subnet 10.0.0.0/24 testn + + docker_swarm run --name testc --net testn -d --ip 10.0.0.42 busybox sh + run docker_swarm inspect testc + [[ "${output}" == *"10.0.0.42"* ]] +} + @test "docker run - reschedule with image affinity" { start_docker_with_busybox 1 start_docker 1