canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Fix docker_dev_setup script on Linux: status check

Open kevinroleke opened this issue 3 months ago • 0 comments

On systemd machines without the service command available, docker will always appear to not be running.

The file script/common/os/linux/impl.sh will attempt to run the following command to check the status of docker:

sudo systemctl docker status # this returns an error, always--the arguments are in the wrong order

I suggest we use docker info instead. This command will return an error code if docker is inactive and success if docker is active. Alternatively, the arguments should be properly arranged for service vs systemctl.

kevinroleke avatar Oct 02 '25 22:10 kevinroleke