Skip to content

Commit 0a68012

Browse files
committed
WIP
1 parent a4ea291 commit 0a68012

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/debug-docker.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,36 @@ jobs:
3131
- name: Start Docker Desktop
3232
run: |
3333
echo "=== Starting Docker Desktop ==="
34-
open -a Docker
35-
echo "Docker Desktop launched"
34+
# Wait a moment for installation to complete
35+
sleep 5
36+
# Check if Docker.app exists
37+
ls -la /Applications/ | grep -i docker || echo "Docker.app not found in Applications"
38+
# Try multiple methods to start Docker Desktop
39+
echo "Method 1: open -a Docker"
40+
open -a "Docker" || echo "Method 1 failed"
41+
sleep 2
42+
echo "Method 2: open /Applications/Docker.app"
43+
open "/Applications/Docker.app" || echo "Method 2 failed"
44+
sleep 2
45+
echo "Method 3: LaunchServices"
46+
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /Applications/Docker.app
47+
open -a "Docker" || echo "Method 3 failed"
48+
echo "Docker Desktop launch attempted"
49+
50+
- name: Set up Docker (Fallback)
51+
uses: docker/setup-docker-action@v4
52+
with:
53+
install: false # Don't install, we already have it
54+
daemon-config: |
55+
{
56+
"experimental": false,
57+
"debug": true,
58+
"log-driver": "json-file",
59+
"log-opts": {
60+
"max-size": "10m",
61+
"max-file": "3"
62+
}
63+
}
3664
3765
- name: Wait for Docker to start
3866
run: |

0 commit comments

Comments
 (0)