From ff49cb3e33c555f96ab67e77c428ab09dd8e24a5 Mon Sep 17 00:00:00 2001 From: Lei Jiang Date: Wed, 3 Feb 2021 21:07:10 +0000 Subject: [PATCH] Dockerfile.simple: Fix compile docker binary error with btrfs Use the image build from Dockerfile.simple to build docker binary failed with not find , we need to install libbtrfs-dev to fix this. ``` Building: bundles/dynbinary-daemon/dockerd-dev GOOS="" GOARCH="" GOARM="" .gopath/src/github.com/docker/docker/daemon/graphdriver/btrfs/btrfs.go:8:10: fatal error: btrfs/ioctl.h: No such file or directory #include ``` Signed-off-by: Lei Jitang (cherry picked from commit dd7ee8ea3e9383b525780b4e624bc16ddbf4a70d) Signed-off-by: Sebastiaan van Stijn --- Dockerfile.simple | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.simple b/Dockerfile.simple index 122b09aea1..a46ff4aa34 100644 --- a/Dockerfile.simple +++ b/Dockerfile.simple @@ -18,13 +18,13 @@ RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ - btrfs-tools \ build-essential \ curl \ cmake \ gcc \ git \ libapparmor-dev \ + libbtrfs-dev \ libdevmapper-dev \ libseccomp-dev \ ca-certificates \