Skip to content

Instantly share code, notes, and snippets.

@spy86
Created July 3, 2022 18:47
Show Gist options
  • Save spy86/e8ca7ebb18a7df290cb5b73c735c6b75 to your computer and use it in GitHub Desktop.
Save spy86/e8ca7ebb18a7df290cb5b73c735c6b75 to your computer and use it in GitHub Desktop.
if [[ "$(uname -a)" =~ ^Linux.*-microsoft-standard.*GNU\/Linux ]]; then
if [ ! -f "/var/run/docker.pid" ]; then
sudo /usr/sbin/service docker start
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment