From e295c46672fad342166eaa4d5dc8384680c9ab61 Mon Sep 17 00:00:00 2001 From: Richard North Date: Sat, 22 Jun 2013 15:53:09 +0100 Subject: [PATCH] Making docker automatically restart previously running containers --- bootstrap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index a2f55f57e..f3d8f4e93 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -13,6 +13,8 @@ dpkg -i lxc-docker_0.4.2-1_amd64.deb apt-get install -f -y rm lxc-docker_0.4.2-1_amd64.deb +sed -i.bak 's/docker -d/docker -d -r=true/' /etc/init/docker.conf # Docker should restart containers + cd ~ && git clone ${DOKKU_REPO} cd dokku && make install if [[ $DOKKU_STACK ]]; then