Skip to content

Commit e62c597

Browse files
wu-shengclaude
andcommitted
Disable Docker containerd image store to fix plugin test failures
Docker 29 on ubuntu-latest enables the containerd snapshotter by default, which causes docker save to produce tarballs with missing layers. This results in docker load creating broken images (a few KB instead of hundreds of MB) that fail at docker run time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8ad8f22 commit e62c597

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/actions/build/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,19 @@ runs:
6565
with:
6666
distribution: temurin
6767
java-version: 8
68-
- name: Docker Version
68+
- name: Disable containerd image store
6969
shell: bash
7070
run: |
71+
DAEMON_JSON="/etc/docker/daemon.json"
72+
if [ -f "$DAEMON_JSON" ]; then
73+
sudo jq '. + {"features": {"containerd-snapshotter": false}}' "$DAEMON_JSON" \
74+
| sudo tee "${DAEMON_JSON}.tmp" > /dev/null
75+
sudo mv "${DAEMON_JSON}.tmp" "$DAEMON_JSON"
76+
else
77+
echo '{"features": {"containerd-snapshotter": false}}' \
78+
| sudo tee "$DAEMON_JSON" > /dev/null
79+
fi
80+
sudo systemctl restart docker
7181
docker version
7282
docker info
7383
- name: Build Docker Image

.github/actions/run/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,19 @@ runs:
3232
- uses: actions/download-artifact@v4
3333
with:
3434
name: test-tools
35-
- name: Docker Version
35+
- name: Disable containerd image store
3636
shell: bash
3737
run: |
38+
DAEMON_JSON="/etc/docker/daemon.json"
39+
if [ -f "$DAEMON_JSON" ]; then
40+
sudo jq '. + {"features": {"containerd-snapshotter": false}}' "$DAEMON_JSON" \
41+
| sudo tee "${DAEMON_JSON}.tmp" > /dev/null
42+
sudo mv "${DAEMON_JSON}.tmp" "$DAEMON_JSON"
43+
else
44+
echo '{"features": {"containerd-snapshotter": false}}' \
45+
| sudo tee "$DAEMON_JSON" > /dev/null
46+
fi
47+
sudo systemctl restart docker
3848
docker version
3949
docker info
4050
- name: Load Test Containers

0 commit comments

Comments
 (0)