canvas-lms
canvas-lms copied to clipboard
Fix docker_dev_setup script on Linux: status check
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.