Skip to content

Commit effd64e

Browse files
committed
Force QEMU usage (bypass vfkit)
1 parent 37458ff commit effd64e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,14 @@ jobs:
4343
run: |
4444
# Install dependencies
4545
brew install podman qemu
46-
# Configure Podman to use QEMU
47-
mkdir -p ~/.config/containers
48-
cat <<EOF > ~/.config/containers/containers.conf
49-
[engine]
50-
machine_provider = "qemu"
51-
EOF
46+
# Force QEMU usage (bypass vfkit)
47+
export CONTAINERS_MACHINE_PROVIDER=qemu
5248
# Initialize and start VM
53-
podman machine init --cpus 2 --memory 2048 --disk-size 20 --now
49+
podman machine init --cpus 2 --memory 2048 --now
5450
podman system connection default podman-machine-default-root
55-
# Set up Docker alias
56-
sudo ln -sf $(which podman) /usr/local/bin/docker
51+
# Set up Docker compatibility
52+
echo "alias docker=podman" >> ~/.bashrc
53+
source ~/.bashrc
5754
# Test Docker
5855
docker --version
5956
- name: Set up Docker in macOS

0 commit comments

Comments
 (0)