Files
docker-docs/test/integration/api/start.bats
Victor Vieux f3a1d58fe3 Revert "Testcase start container with hostconfig"
This reverts commit 3dff7aa96a.

Signed-off-by: Victor Vieux <vieux@docker.com>
2016-02-17 15:46:51 -08:00

28 lines
549 B
Bash

#!/usr/bin/env bats
load ../helpers
function teardown() {
swarm_manage_cleanup
stop_docker
}
@test "docker start" {
start_docker_with_busybox 2
swarm_manage
# create
docker_swarm create --name test_container busybox sleep 1000
# make sure created container exists
# new created container has no status
run docker_swarm ps -l
[ "${#lines[@]}" -eq 2 ]
[[ "${lines[1]}" == *"test_container"* ]]
# start
docker_swarm start test_container
# Verify
[ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ]
}