diff --git a/packaging/ubuntu/lxc-docker.prerm b/packaging/ubuntu/lxc-docker.prerm index 824f15cff0..aed7d97eea 100644 --- a/packaging/ubuntu/lxc-docker.prerm +++ b/packaging/ubuntu/lxc-docker.prerm @@ -1,4 +1,4 @@ #!/bin/sh # Stop docker -/sbin/stop docker +if [ "`pgrep -f '/usr/bin/docker -d'`" != "" ]; then /sbin/stop docker; fi