From 0844a51e43df1c7c445c3142e7729069c06812bd Mon Sep 17 00:00:00 2001 From: Kay Yan Date: Wed, 9 Aug 2023 14:35:12 +0000 Subject: [PATCH] support test integration docker 23 compatibility Signed-off-by: Kay Yan --- .github/workflows/test.yml | 15 ++------------- cmd/nerdctl/builder_build_test.go | 4 ---- cmd/nerdctl/compose_up_test.go | 2 +- cmd/nerdctl/system_prune_linux_test.go | 6 +++++- cmd/nerdctl/volume_prune.go | 7 +++++++ cmd/nerdctl/volume_prune_linux_test.go | 8 +++++--- pkg/api/types/volume_types.go | 2 ++ pkg/cmd/system/prune.go | 1 + pkg/cmd/volume/prune.go | 8 ++++++++ 9 files changed, 31 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index badf87f1d18..534986876dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -181,26 +181,15 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: true check-latest: true - # Docker >= 23 is still unsupported: https://github.com/containerd/nerdctl/issues/2421 - - name: "Install Docker 20.10" + - name: "Enable BuildKit" run: | set -eux -o pipefail - # Uninstall the preinstalled Docker (Moby) - sudo apt-get remove moby-* # Enable BuildKit explicitly sudo apt-get install -y moreutils cat /etc/docker/daemon.json jq '.features.buildkit = true'