Prevent containers from starting when Docker starts This should be run while the docker daemon is stopped for x in /var/lib/docker/containers/*/config.v2.json; do cp $x $x.bak; cat $x.bak | jq -c '.State.Running = false' > $x; done