Start docker unconditionally

`systemctl is-enabled` is not a reliable indicator that the docker service should be started. Docker service may be running even if marked as disabled.

Signed-off-by: Fabricio Voznika <fvoznika@google.com>
This commit is contained in:
Fabricio Voznika 2020-03-26 18:02:48 -07:00
parent c1115d4e57
commit efddc5f252

View File

@ -70,4 +70,4 @@ runcmd:
- systemctl enable containerd.target
- systemctl start containerd.target
# Start docker after containerd is running. (for Docker 18.09+)
- systemctl is-enabled docker && (systemctl is-active docker || systemctl start docker)
- systemctl is-active docker || systemctl start docker