Skip to content

Commit

Permalink
debugging for issue 1301
Browse files Browse the repository at this point in the history
Signed-off-by: l00397676 <lujingxiao@huawei.com>
  • Loading branch information
jingxiaolu committed Jan 10, 2020
1 parent aa6bfe7 commit f11dffc
Show file tree
Hide file tree
Showing 11 changed files with 269 additions and 176 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

17 comments on commit f11dffc

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hinews
Sorry for forgetting to rebase to v19.03.5, please try again with this one.

Tested with the Dockerfile you provided:

[root@HGH1000059941 issue1301]# DOCKER_BUILDKIT=1 docker build --build-arg HOSTNAME=newhost .
[+] Building 5.6s (6/6) FINISHED
 => [internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                         0.0s
 => => transferring dockerfile: 125B                                                                                                                                                                         0.0s
 => [internal] load metadata for docker.io/library/centos:7                                                                                                                                                  4.8s
 => CACHED [1/2] FROM docker.io/library/centos:7@sha256:4a701376d03f6b39b8c2a8f4a8e499441b0d567f9ab9d58e4991de4472fb813c                                                                                     0.0s
 => [2/2] RUN hostname && cat /proc/sys/kernel/hostname && cat /etc/hosts                                                                                                                                    0.7s
 => exporting to image                                                                                                                                                                                       0.0s
 => => exporting layers                                                                                                                                                                                      0.0s
 => => writing image sha256:a29f5dfb82b2897e04023f55d3e187a27928321c4f89b398cb737e4c0f256408                                                                                                                 0.0s

@ShemTovYosef
Copy link

@ShemTovYosef ShemTovYosef commented on f11dffc Jan 11, 2020 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShemTovYosef
Copy link

@ShemTovYosef ShemTovYosef commented on f11dffc Jan 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Lu Jingxiao

I successfully built the docker-ce and updated build files in /usr/bin.

[centos$ docker version

Client: Docker Engine - Community
 Version:           19.03.6-test1
 API version:       1.40
 Go version:        go1.12.12
 Git commit:
 Built:             Sat Jan 11 18:37:28 2020
 OS/Arch:           linux/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.6-test1
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       f11dffc
  Built:            Sat Jan 11 18:41:56 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

And when building this Dockerfile:

FROM docker.io/centos:7
RUN echo "Env variable HOSTNAME: $HOSTNAME" && \
    echo "hostname: $(hostname)" && \
    echo "kernel value: $(cat /proc/sys/kernel/hostname)"  && \
    echo "/etc/hosts: $(cat /etc/hosts)"

ARG HOSTNAME=sqa
ENV HOSTNAME=$HOST_NAME
RUN echo "Env variable HOSTNAME: $HOSTNAME" && \
    echo "hostname: $(hostname)" && \
    echo "kernel value: $(cat /proc/sys/kernel/hostname)"  && \
    echo "/etc/hosts: $(cat /etc/hosts)"

I see that hostname didn't change:

[centos~]$ sudo docker buildx build --progress=plain --build-arg HOSTNAME=newhost . --no-cache
WARN[0000] No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 546B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/centos:7
#3 DONE 0.8s

#4 [1/3] FROM docker.io/library/centos:7@sha256:4a701376d03f6b39b8c2a8f4a8e...
#4 resolve docker.io/library/centos:7@sha256:4a701376d03f6b39b8c2a8f4a8e499441b0d567f9ab9d58e4991de4472fb813c done
#4 CACHED

#5 [2/3] RUN echo "Env variable HOSTNAME: $HOSTNAME" &&     echo "hostname:...
#5 0.063 Env variable HOSTNAME: buildkitsandbox
#5 0.064 hostname: buildkitsandbox
#5 0.066 kernel value: buildkitsandbox
#5 0.067 /etc/hosts:
#5 0.067 127.0.0.1      localhost buildkitsandbox
#5 0.067 ::1    localhost ip6-localhost ip6-loopback
#5 DONE 0.1s

#6 [3/3] RUN echo "Env variable HOSTNAME: " &&     echo "hostname: $(hostna...
#6 0.056 Env variable HOSTNAME:
#6 0.058 hostname: buildkitsandbox
#6 0.059 kernel value: buildkitsandbox
#6 0.061 /etc/hosts:
#6 0.061 127.0.0.1      localhost buildkitsandbox
#6 0.061 ::1    localhost ip6-localhost ip6-loopback
#6 DONE 0.1s

Could you try it on your side with enabled build option "--progress=plain" and
check that hostname changed in each RUN command?

With regards,
Yosef

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hinews
It works with driver docker:

[root@HGH1000059941 issue1301]# docker buildx build --progress=plain --build-arg HOSTNAME=newhost . --no-cache
#2 [internal] load build definition from Dockerfile
#2 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 32B done
#2 DONE 0.0s

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#3 [internal] load metadata for docker.io/library/centos:7
#3 DONE 0.0s

#6 [1/3] FROM docker.io/library/centos:7
#6 CACHED

#4 [2/3] RUN echo "Env variable HOSTNAME: $HOSTNAME" &&     echo "hostname:...
#4 0.188 Env variable HOSTNAME: newhost
#4 0.189 hostname: newhost
#4 0.191 kernel value: newhost
#4 0.193 /etc/hosts:
#4 0.193 127.0.0.1      localhost newhost
#4 0.193 ::1    localhost ip6-localhost ip6-loopback
#4 DONE 0.2s

#5 [3/3] RUN echo "Env variable HOSTNAME: " &&     echo "hostname: $(hostna...
#5 0.246 Env variable HOSTNAME:
#5 0.248 hostname: newhost
#5 0.249 kernel value: newhost
#5 0.251 /etc/hosts:
#5 0.251 127.0.0.1      localhost newhost
#5 0.251 ::1    localhost ip6-localhost ip6-loopback
#5 DONE 0.3s

#7 exporting to image
#7 exporting layers 0.1s done
#7 writing image sha256:c76f658300e4c22ad91efc65f67afe50e0e1919c278086397b956d44386939d8 done
#7 DONE 0.1s

But you're using driver docker-container, I need some time to dig with this driver. You may try with driver docker first?

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hinews
When using driver docker-container, dockerd will pull moby/buildkit:buildx-stable-1 and run it. When building images, dockerd will use the buildkitd in that container.
So you'll have to build your own buildkit image (with patch) and re-create the driver with it.

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingxiaolu

I tried with docker driver and it's works the same as in your output.
But I have one issue:
When the second RUN command executed - before I changed environment HOSTNAME to the new value secondhostname but it didn't affect, the second RUN command still using variable that I set from --build-arg

FROM docker.io/centos:7
RUN echo "Env variable HOSTNAME: $HOSTNAME" && \
    echo "hostname: $(hostname)" && \
    echo "kernel value: $(cat /proc/sys/kernel/hostname)"  && \
    echo "/etc/hosts: $(cat /etc/hosts)"

ARG HOSTNAME=secondhostname
ENV HOSTNAME=$HOSTNAME
RUN echo "Env variable HOSTNAME: $HOSTNAME" && \
    echo "hostname: $(hostname)" && \
    echo "kernel value: $(cat /proc/sys/kernel/hostname)"  && \
    echo "/etc/hosts: $(cat /etc/hosts)"
[centos]$ sudo docker buildx build --progress=plain --build-arg HOSTNAME=newhost . --no-cache
#2 [internal] load .dockerignore
#2 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 91B done
#1 DONE 0.0s

#3 [internal] load metadata for docker.io/library/centos:7
#3 DONE 0.0s

#4 [1/3] FROM docker.io/library/centos:7
#4 CACHED

#5 [2/3] RUN echo "Env variable HOSTNAME: $HOSTNAME" &&     echo "hostname:...
#5 0.390 Env variable HOSTNAME: newhost
#5 0.397 hostname: newhost
#5 0.399 kernel value: newhost
#5 0.401 /etc/hosts:
#5 0.401 127.0.0.1      localhost newhost
#5 0.401 ::1    localhost ip6-localhost ip6-loopback
#5 DONE 0.5s

#6 [3/3] RUN echo "Env variable HOSTNAME: newhost" &&     echo "hostname: $...
#6 0.526 Env variable HOSTNAME: newhost
#6 0.535 hostname: newhost
#6 0.544 kernel value: newhost
#6 0.555 /etc/hosts:
#6 0.555 127.0.0.1      localhost newhost
#6 0.555 ::1    localhost ip6-localhost ip6-loopback
#6 DONE 0.6s

#7 exporting to image
#7 exporting layers
#7 exporting layers 0.1s done
#7 writing image sha256:081bf82499a1408fb5df1c14c32afa3591ee2296563eabff09ae6c214c20117d done
#7 DONE 0.1s

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hinews
When using driver docker-container, dockerd will pull moby/buildkit:buildx-stable-1 and run it. When building images, dockerd will use the buildkitd in that container.
So you'll have to build your own buildkit image (with patch) and re-create the driver with it.

How can I do it?
As I tried before

git clone https://github.com/jingxiaolu/docker-ce
cd docker-ce
git checkout hostname
sudo make static DOCKER_BUILD_PKGS=static-linux

sudo systemctl stop docker

yes | cp -rf /home/centos/docker-ce/components/packaging/static/build/linux/docker /usr/bin
sudo systemctl start docker

or something else I need to run?

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jingxiaolu

Regarding secondhostname issue, It will be good to solve but if you don't have time - leave it. The idea was to change hostname in Dockerfile by arg HOSTNAME, so each layer will run with customized hostname.

Regarding docker-container driver, I didn't understand how to rebuild it.

Anyway, You helped me a lot and solved the main issue that now I can run docker build with specific hostname. Could you merge it to the docker-ce that we can use it in our production systems?

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hinews
Sorry for reply late (fighting for a milestone 🤕 )

When the second RUN command executed - before I changed environment HOSTNAME to the new value secondhostname but it didn't affect, the second RUN command still using variable that I set from --build-arg

When building with legacy docker build (not with buildkit), will it takes affect? If so, I think you can raise a new issue and asks for update. I think it may not an easy issue but I'm also new to buildkit.

Could you merge it to the docker-ce that we can use it in our production systems?

I may push a PR to buildkit next week, and then re-vendor to docker-ce when it is merged in buildkit.

Regarding docker-container driver, I didn't understand how to rebuild it.

Does driver docker meet your requirement? If not, could you wait for me raise the PR first, then you use that PR on building it?

Many thanks :-D

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingxiaolu

Thanks for your answers, I waited each day)
Fine, I will wait for merge of PR

With regards,
Yosef

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingxiaolu

could you update me when are you going to raise PR?
I just want that this change will go to the nearest docker-ce release 19.03.06

Thanks!

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hinews
sorry for late, just back from a milestone war...

here it is for buildkit : moby/buildkit#1339

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingxiaolu

Thank you very much!
This PR contains support both for docker and docker-container driver and for buildx cli?

With regards,
Yosef

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hinews

MR for buildkit, once merged --> update buildkit image --> docker-container driver of buildx can use it

MR for buildkit, once merged --> update version of buildkit in docker-ce --> docker driver of buildx can use it

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingxiaolu

How are you? Could you update me about pull request, it's about month is waiting status.

Thanks you a lot for help!

@jingxiaolu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hinews

Sorry I don't have much time on it, daily work and family took it. I'll try to find some time to update it but I'm afraid I can't guarantee the deadline...

If you or your college can take it, I'm OK~

@ShemTovYosef
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingxiaolu

How are you? I saw that our PR tagged for 0.8.0 version: https://github.com/moby/buildkit/milestone/8
I hope it will be resolved, just half-year passed )

I took the new machine and installed docker-ce, it installed the latest one 19.03.12 and the previous one 19.03.06 on which we tested is not available more in centos yum repository.
I tried to build the docker from your branch but now it's failing, maybe it's related to docker-ce version. Could you check if the error message tells you something, if it's related to docker-ce version, I will try to build it from sources: https://github.com/docker/docker-ce/archive/v19.03.6.zip

Please check the logs below.

First of our, I installed docker-ce
sudo yum install -y docker-ce docker-ce-cli containerd.io

Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:46:54 2020
 OS/Arch:           linux/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:45:28 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Then I run
git clone https://github.com/jingxiaolu/docker-ce
cd docker-ce
git checkout hostname
sudo make static DOCKER_BUILD_PKGS=static-linux

 sudo make static DOCKER_BUILD_PKGS=static-linux
make VERSION=19.03.6-test1 CLI_DIR=/home/centos/docker-ce/components/cli ENGINE_DIR=/home/centos/docker-ce/components/engine -C /home/cen                           tos/docker-ce/components/packaging static
make[1]: Entering directory `/home/centos/docker-ce/components/packaging'
for p in static-linux; do \
        make -C static VERSION=19.03.6-test1 ENGINE_DIR=/home/centos/docker-ce/components/engine CLI_DIR=/home/centos/docker-ce/component                           s/cli GO_VERSION=1.12.12 ${p}; \
done
make[2]: Entering directory `/home/centos/docker-ce/components/packaging/static'
make -C /home/centos/docker-ce/components/cli -f docker.Makefile VERSION=19.03.6-test1 build
make[3]: Entering directory `/home/centos/docker-ce/components/cli'
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
cat ./dockerfiles/Dockerfile.binary-native | docker build --build-arg=GO_VERSION -t docker-cli-native -
Sending build context to Docker daemon  2.048kB
Step 1/6 : ARG GO_VERSION=1.12.12
Step 2/6 : FROM    golang:${GO_VERSION}-alpine
 ---> 841429c8613b
Step 3/6 : RUN     apk add -U git bash coreutils gcc musl-dev
 ---> Using cache
 ---> e26cc09b40b7
Step 4/6 : ENV     CGO_ENABLED=0         DISABLE_WARN_OUTSIDE_CONTAINER=1
 ---> Using cache
 ---> 960c5fb7b600
Step 5/6 : WORKDIR /go/src/github.com/docker/cli
 ---> Using cache
 ---> 0a62a90e61d7
Step 6/6 : CMD     ./scripts/build/binary
 ---> Using cache
 ---> 33b6f2adaf5e
Successfully built 33b6f2adaf5e
Successfully tagged docker-cli-native:latest
docker run --rm -e VERSION=19.03.6-test1 -e GITCOMMIT -e PLATFORM -e TESTFLAGS -e TESTDIRS -e GOOS -e GOARCH -e GOARM -v "/home/centos/do                           cker-ce/components/cli":/go/src/github.com/docker/cli -v "docker-cli-dev-cache:/root/.cache/go-build"  docker-cli-native
Building statically linked build/docker-linux-amd64
make[3]: Leaving directory `/home/centos/docker-ce/components/cli'
make -C /home/centos/docker-ce/components/engine VERSION=19.03.6-test1 binary
make[3]: Entering directory `/home/centos/docker-ce/components/engine'
Makefile:157: The docker client CLI has moved to github.com/docker/cli. For a dev-test cycle involving the CLI, run:
 DOCKER_CLI_PATH=/host/path/to/cli/binary make shell
 then change the cli and compile into a binary at the same location.

DOCKER_BUILDKIT="1" docker build --build-arg=GO_VERSION  --build-arg=CROSS=false  -t "docker-dev:hostname" -f "Dockerfile" .
[+] Building 41.2s (48/67)
 => [internal] load build definition from Dockerfile                                                                                                           0.0s
 => => transferring dockerfile: 97B                                                                                                                            0.0s
 => [internal] load .dockerignore                                                                                                                              0.0s
 => => transferring context: 93B                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/golang:1.12.12-stretch                                                                                      0.8s
 => [internal] load build context                                                                                                                              0.4s
 => => transferring context: 853.24kB                                                                                                                          0.4s
 => CACHED FROM docker.io/djs55/vpnkit@sha256:e508a17cfacc8fd39261d5b4e397df2b953690da577e2c987a47630cd0c42f8e                                                 0.0s
 => [base 1/2] FROM docker.io/library/golang:1.12.12-stretch@sha256:34ccff2abf48e6ef50fd189d1e0bf9dfcc91d59a5dd57fe22f5cc85f1f69ec7b                           0.0s
 => CACHED [base 2/2] RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list  && sed -ri "s/(security).debian.org/$  0.0s
 => CACHED [runtime-dev-cross-false 1/1] RUN apt-get update && apt-get install -y --no-install-recommends  libapparmor-dev  libseccomp-dev  && rm -rf /var/li  0.0s
 => CACHED [dev 1/24] RUN groupadd -r docker                                                                                                                   0.0s
 => CACHED [dev 2/24] RUN useradd --create-home --gid docker unprivilegeduser                                                                                  0.0s
 => CACHED [dev 3/24] RUN ln -sfv /go/src/github.com/docker/docker/.bashrc ~/.bashrc                                                                           0.0s
 => CACHED [dev 4/24] RUN echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc                                                         0.0s
 => CACHED [dev 5/24] RUN ln -s /usr/local/completion/bash/docker /etc/bash_completion.d/docker                                                                0.0s
 => CACHED [dev 6/24] RUN ldconfig                                                                                                                             0.0s
 => CANCELED [dev 7/24] RUN apt-get update && apt-get install -y --no-install-recommends  apparmor  aufs-tools  bash-completion  btrfs-tools  iptables  jq    39.8s
 => CACHED [criu 1/2] RUN apt-get update && apt-get install -y --no-install-recommends  libnet-dev  libprotobuf-c-dev  libprotobuf-dev  libnl-3-dev  libcap-d  0.0s
 => CANCELED [criu 2/2] RUN mkdir -p /usr/src/criu  && curl -sSL https://github.com/checkpoint-restore/criu/archive/v3.12.tar.gz | tar -C /usr/src/criu/ -xz  40.3s
 => CANCELED [swagger 1/1] RUN set -x  && export GOPATH="$(mktemp -d)"  && git clone https://github.com/go-swagger/go-swagger.git "/go/src/github.com/go-swa  39.8s
 => CANCELED [registry 1/1] RUN set -x  && export GOPATH="$(mktemp -d)"  && git clone https://github.com/docker/distribution.git "/go/src/github.com/docker/  40.3s
 => CACHED [runc 1/3] COPY hack/dockerfile/install/install.sh ./install.sh                                                                                     0.0s
 => CACHED [runc 2/3] COPY hack/dockerfile/install/runc.installer ./                                                                                           0.0s
 => CANCELED [runc 3/3] RUN PREFIX=/build ./install.sh runc                                                                                                   39.6s
 => CACHED [rootlesskit 1/4] COPY hack/dockerfile/install/install.sh ./install.sh                                                                              0.0s
 => CACHED [gometalinter 2/3] COPY hack/dockerfile/install/gometalinter.installer ./                                                                           0.0s
 => CANCELED [gometalinter 3/3] RUN PREFIX=/build ./install.sh gometalinter                                                                                   39.3s
 => CACHED [frozen-images 1/3] RUN apt-get update && apt-get install -y --no-install-recommends  ca-certificates  jq  && rm -rf /var/lib/apt/lists/*           0.0s
 => CACHED [frozen-images 2/3] COPY contrib/download-frozen-image-v2.sh /                                                                                      0.0s
 => CACHED [rootlesskit 2/4] COPY hack/dockerfile/install/rootlesskit.installer ./                                                                             0.0s
 => CACHED [vndr 2/3] COPY hack/dockerfile/install/vndr.installer ./                                                                                           0.0s
 => CANCELED [rootlesskit 3/4] RUN PREFIX=/build/ ./install.sh rootlesskit                                                                                    40.0s
 => CANCELED [vndr 3/3] RUN PREFIX=/build ./install.sh vndr                                                                                                   39.5s
 => CACHED [tini 1/4] RUN apt-get update && apt-get install -y --no-install-recommends  cmake  vim-common  && rm -rf /var/lib/apt/lists/*                      0.0s
 => CACHED [tini 2/4] COPY hack/dockerfile/install/install.sh ./install.sh                                                                                     0.0s
 => CACHED [tini 3/4] COPY hack/dockerfile/install/tini.installer ./                                                                                           0.0s
 => CACHED [tini 4/4] RUN PREFIX=/build ./install.sh tini                                                                                                      0.0s
 => CACHED [containerd 1/4] RUN apt-get update && apt-get install -y --no-install-recommends  btrfs-tools  && rm -rf /var/lib/apt/lists/*                      0.0s
 => CACHED [containerd 2/4] COPY hack/dockerfile/install/install.sh ./install.sh                                                                               0.0s
 => CACHED [containerd 3/4] COPY hack/dockerfile/install/containerd.installer ./                                                                               0.0s
 => CANCELED [containerd 4/4] RUN PREFIX=/build ./install.sh containerd                                                                                       39.7s
 => CACHED [dockercli 2/3] COPY hack/dockerfile/install/dockercli.installer ./                                                                                 0.0s
 => CACHED [dockercli 3/3] RUN PREFIX=/build ./install.sh dockercli                                                                                            0.0s
 => CACHED [proxy 2/3] COPY hack/dockerfile/install/proxy.installer ./                                                                                         0.0s
 => CACHED [proxy 3/3] RUN PREFIX=/build ./install.sh proxy                                                                                                    0.0s
 => CACHED [tomlv 2/3] COPY hack/dockerfile/install/tomlv.installer ./                                                                                         0.0s
 => CACHED [tomlv 3/3] RUN PREFIX=/build ./install.sh tomlv                                                                                                    0.0s
 => CACHED [gotestsum 2/3] COPY hack/dockerfile/install/gotestsum.installer ./                                                                                 0.0s
 => ERROR [gotestsum 3/3] RUN PREFIX=/build ./install.sh gotestsum                                                                                            39.1s
 => [frozen-images 3/3] RUN /download-frozen-image-v2.sh /build  buildpack-deps:jessie@sha256:dd86dced7c9cd2a724e779730f0a53f93b7ef42228d4344b25ce9a42a14862  22.7s
------
 > [gotestsum 3/3] RUN PREFIX=/build ./install.sh gotestsum:
#27 1.140 + RM_GOPATH=0
#27 1.140 + TMP_GOPATH=
#27 1.140 + : /build
#27 1.140 + '[' -z '' ']'
#27 1.140 ++ mktemp -d
#27 1.151 + export GOPATH=/tmp/tmp.XHKJCkXJbL
#27 1.151 + GOPATH=/tmp/tmp.XHKJCkXJbL
#27 1.151 + RM_GOPATH=1
#27 1.151 ++ dirname ./install.sh
#27 1.156 Installing gotestsum version v0.3.5
#27 1.156 + dir=.
#27 1.156 + bin=gotestsum
#27 1.156 + shift
#27 1.156 + '[' '!' -f ./gotestsum.installer ']'
#27 1.156 + . ./gotestsum.installer
#27 1.156 ++ GOTESTSUM_COMMIT=v0.3.5
#27 1.156 + install_gotestsum
#27 1.156 + echo 'Installing gotestsum version v0.3.5'
#27 1.156 + go get -d gotest.tools/gotestsum
#27 38.64 + cd /tmp/tmp.XHKJCkXJbL/src/gotest.tools/gotestsum
#27 38.64 + git checkout -q v0.3.5
#27 38.71 + go build -buildmode=pie -o /build/gotestsum gotest.tools/gotestsum
#27 39.10 handler.go:8:2: cannot find package "github.com/sirupsen/logrus" in any of:
#27 39.10       /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT)
#27 39.10       /tmp/tmp.XHKJCkXJbL/src/github.com/sirupsen/logrus (from $GOPATH)
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c PREFIX=/build ./install.sh $INSTALL_BINARY_NAME]: runc did not terminate sucessfully
make[3]: *** [build] Error 1
make[3]: Leaving directory `/home/centos/docker-ce/components/engine'
make[2]: *** [static-engine] Error 2
make[2]: Leaving directory `/home/centos/docker-ce/components/packaging/static'
make[1]: *** [static] Error 2
make[1]: Leaving directory `/home/centos/docker-ce/components/packaging'
make: *** [static] Error 2

Many thanks,
Yosef

Please sign in to comment.