-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Check if Docker is running | ||
if ! docker info &>/dev/null; then | ||
echo "Docker is not running. Checking for Colima..." | ||
if command_exists colima; then | ||
echo "Colima is installed. Attempting to start Colima..." | ||
colima start &>/dev/null | ||
if [ $? -eq 0 ]; then | ||
echo "Colima started successfully." | ||
else | ||
echo "Failed to start Colima. Please start Docker manually or check your Docker installation." | ||
fi | ||
else | ||
echo "Colima is not installed. Please start Docker manually or check your Docker installation." | ||
fi | ||
else | ||
echo "Docker is running." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters