Skip to content

Commit 6e3f6eb

Browse files
committed
Pin compose plugin
1 parent 12719ca commit 6e3f6eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test-docker-v20.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
# See https://github.com/docker/buildx/issues/3654
4141
BUILDX_VERSION=$(apt-cache madison docker-buildx-plugin | awk '{print $3}' | grep -v '^0\.3[1-9]\.' | head -1)
4242
echo "Installing docker-buildx-plugin=$BUILDX_VERSION"
43-
sudo apt-get install -y docker-ce=5:20.10.* docker-ce-cli=5:20.10.* containerd.io docker-buildx-plugin="$BUILDX_VERSION" docker-compose-plugin
43+
# Pin compose plugin to v2.x to avoid API incompatibility with Docker 20.10
44+
COMPOSE_VERSION=$(apt-cache madison docker-compose-plugin | awk '{print $3}' | grep '^2\.' | head -1)
45+
echo "Installing docker-compose-plugin=$COMPOSE_VERSION"
46+
sudo apt-get install -y docker-ce=5:20.10.* docker-ce-cli=5:20.10.* containerd.io docker-buildx-plugin="$BUILDX_VERSION" docker-compose-plugin="$COMPOSE_VERSION"
4447
sudo systemctl restart docker
4548
4649
- name: Verify Docker version, Install and Test

0 commit comments

Comments
 (0)