start and enable docker.service if not running/enabled (#1140)

This commit is contained in:
Aleksandr Chebotov
2020-06-30 08:57:34 +03:00
committed by GitHub
parent 8d0d6f85cc
commit 21c6325fca

View File

@@ -27,6 +27,10 @@ else
echo "Docker ($docker_package) is already installed" echo "Docker ($docker_package) is already installed"
fi fi
# Enable docker.service
systemctl is-active --quiet docker.service || systemctl start docker.service
systemctl is-enabled --quiet docker.service || systemctl enable docker.service
# Run tests to determine that the software installed as expected # Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work" echo "Testing to make sure that script performed as expected, and basic scenarios work"
echo "Checking the docker-moby and moby-buildx" echo "Checking the docker-moby and moby-buildx"