We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a537c commit 9dbc09fCopy full SHA for 9dbc09f
1 file changed
internal/colima.zsh
@@ -27,15 +27,11 @@ function container::internal::container::load {
27
check_command jq || return 1
28
check_command colima || return 1
29
30
- local colima_status
31
- if ! colima_status=$(colima status --json 2>/dev/null | jq -r '.status'); then
32
- echo "⚠️ Could not get Colima status. Starting Colima..."
33
- colima start
34
- return
35
- fi
+ local docker_socket
+ docker_socket=$(colima status --json 2>/dev/null | jq -r '.docker_socket // empty')
36
37
- if [[ "$colima_status" != "Running" ]]; then
38
- echo "🚀 Colima is not running. Starting Colima..."
+ if [[ -z "$docker_socket" ]]; then
+ echo "🚀 Colima does not seem to be running (docker_socket is empty). Starting Colima..."
39
colima start
40
fi
41
}
0 commit comments