Open KevinSmile opened 5 years ago
I am trying to develop a website which can build and push images dynamically (each time when user click a button on our web front-end). The base image in already in backend, each time user will upload different files for we to COPY to base image(we will generate different Dockerfiles). Any suggestions?
Finally I found that if a centos base-image had yum install -y openssh-clients
, there will be something wrong(as described in this issue) when using img
.
@KevinSmile Did you find any workaround?
Hi @KevinSmile,
In my case (cross compiling to arm64), I got around the issue by getting away from static compilation (after seeing https://github.com/golang/go/issues/28642).
I hope it helps! 😁
Environment: img v0.5.6
Description: Same Dockerfile, change the base-image part, failed COPY when building image.
img build -t node1:5000/imgtest/api-1:v1 .
Success:
Failed:
Err mesage:
Then I removed the COPY part, I got success: Success:
About
node1:5000/imgtest/myimage:v1
: from my company's Registry Docker version: 1.13.1 OS:linux/amd64, CentOSThen I changed base-image part to public Docker-Hub centos(but keep the COPY part), I got Success: Success:
Then I changed base-image part to public Docker-Hub ubuntu:18.04(but keep the COPY part), I got failure: Failed:
Err message: