Open bruceauyeung opened 7 months ago
Looks like most likely problem with your setup, or maybe with the specific to the command you are running. I see there is a previous RUN
command that worked so try to figure out what condition or command makes it fail. If you want us to verify the Dockerfile by running it, provide a runnable version.
Additionally, in your go build
command, with your current setup passing GOOS/GOARCH
like this doesn't do anything.
sysos:CentOS Linux 7 kernel:4.19.0-9.el7.ucloud.x86_64
rpm -aq | grep docker
docker-buildx-plugin-0.14.1-1.el7
docker-compose-plugin-2.27.1-1.el7.x86_64
docker-ce-cli-26.1.4-1.el7.x86_64
docker-scan-plugin-0.23.0-3.el7.x86_64
docker-ce-26.1.4-1.el7.x86_64
docker-ce-rootless-extras-26.1.4-1.el7.x86_64
resolvent,Uninstalling Docker Buildx Plugin, Restarting Docker Recovery
rpm -e --nodeps docker-buildx-plugin
systemctl restart docker
How to fix docker buildx plugin issues?
Contributing guidelines
I've found a bug and checked that ...
Description
os: a customized linux distro, based on centos8 very likely kernel:Linux LIN-76F1FDC50C2 4.19.112-2.el8.x86_64 #1 SMP Wed Jun 10 09:04:49 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux docker: ├── containerd.io-1.6.28-3.2.el8.x86_64.rpm ├── docker-buildx-plugin-0.13.1-1.el8.x86_64.rpm ├── docker-ce-26.0.0-1.el8.x86_64.rpm ├── docker-ce-cli-26.0.0-1.el8.x86_64.rpm ├── docker-ce-rootless-extras-26.0.0-1.el8.x86_64.rpm ├── docker-compose-plugin-2.25.0-1.el8.x86_64.rpm └── docker-scan-plugin-0.23.0-3.el8.x86_64.rpm
I'm sure that
/bin/sh
exists in imagegolang:1.21
error when run
docker build -t controller:latest
:Expected behaviour
docker builds sucessfully even when docker-buildx-plugin installed.
Actual behaviour
if docker-buildx-plugin removed ,docker builds sucessfully if docker-buildx-plugin installed, docker builds failed
Buildx version
github.com/docker/buildx v0.13.1 7884339 , also tried docker-buildx-plugin-0.10.2-1.el8.x86_64.rpm but with same results.
Docker info
Builders list
Configuration
Build logs
Additional info
this go project is just a skeleton project created by operator-sdk with docker-buildx-plugin installed, image pulling in
docker build
is ok, but i can not see thatgolang:1.21
image indocker images
. with docker-buildx-plugin removed, image pulling indocker build
is ok, and i can see thatgolang:1.21
image indocker images