feat: Add script to check if Docker is running on Snap

This commit is contained in:
Christopher
2024-05-16 16:30:23 -05:00
parent f3eeade4bf
commit 37a1218e54
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# Run command
```bash
bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/check-if-docker-is-running-on-snap/run.sh)"
```

View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Check if Docker is installed via Snap
if snap list docker &> /dev/null; then
echo "Docker is installed via Snap."
else
echo "Docker is not installed via Snap, or Snap is not installed."
fi