Skip to content

Commit 161631e

Browse files
authored
Merge pull request #56 from Lan-ce-lot/docker-sh
fix: use systemctl status docker to check if dockerd running
2 parents e02ef96 + 747c8b7 commit 161631e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context/docker/rootfs/scripts/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ check_docker_valid() {
7373

7474
storage=${1:-/var/lib/docker}
7575
mkdir -p "$storage"
76-
if ! utils_command_exists docker; then
76+
if ! utils_command_exists docker || ! utils_command_exists systemctl status docker; then
7777
lsb_dist=$(get_distribution)
7878
lsb_dist="$(echo "$lsb_dist" | tr '[:upper:]' '[:lower:]')"
7979
echo "current system is $lsb_dist"

0 commit comments

Comments
 (0)