mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-04-05 00:44:08 -04:00
feat: Add script to check if Docker is running on Snap
This commit is contained in:
5
check-if-docker-is-running-on-snap/README.md
Normal file
5
check-if-docker-is-running-on-snap/README.md
Normal 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)"
|
||||||
|
```
|
||||||
8
check-if-docker-is-running-on-snap/run.sh
Normal file
8
check-if-docker-is-running-on-snap/run.sh
Normal 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
|
||||||
Reference in New Issue
Block a user