fix restart docker in tests

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2016-04-07 14:14:25 -07:00
parent 34d4cae503
commit aaa10d16b7
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ function start_docker() {
${DOCKER_IMAGE}:${DOCKER_VERSION} \ ${DOCKER_IMAGE}:${DOCKER_VERSION} \
bash -c "\ bash -c "\
rm /var/run/docker.pid ; \ rm /var/run/docker.pid ; \
rm /var/run/docker/libcontainerd/docker-containerd.pid ; \
rm /var/run/docker/libcontainerd/docker-containerd.sock ; \
hostname node-$i && \ hostname node-$i && \
docker daemon -H 127.0.0.1:$port \ docker daemon -H 127.0.0.1:$port \
-H=unix:///var/run/docker.sock \ -H=unix:///var/run/docker.sock \