Closed c2nes closed 4 years ago
Hi Chris,
Thanks for giving Sysbox a shot and for filing the issue. I was able to reproduce it on my end too.
I don't know the exact cause and will investigate more, but I bumped into a similar problem a while back and found it to be related to some incompatibility between the docker version and the container's base image (alpine in your case).
I tried to reproduce it with a different image (nestybox/ubuntu-disco-systemd-docker) and it does not repro there, confirming my suspicion.
I'll investigate a bit more and get back to you soon.
Thanks again.
Hi Chris,
I confirmed that the problem occurs with alpine:latest + docker 18.09. I don't know the exact reason, but it does not appear to be specific to Sysbox itself.
The problem does not repro when I use alpine:latest + docker 19.03.
Thus, I updated the nestybox/alpine-docker
image to use docker 19.03:
diff --git a/dockerfiles/alpine-docker/Dockerfile b/dockerfiles/alpine-docker/Dockerfile
index 741ec75..5885769 100644
--- a/dockerfiles/alpine-docker/Dockerfile
+++ b/dockerfiles/alpine-docker/Dockerfile
@@ -4,4 +4,4 @@
FROM alpine:latest
-RUN apk update && apk add docker
+RUN sed -i 's/v3.10/latest-stable/g' /etc/apk/repositories && apk update && apk add docker
Give it a shot now, it should work. I'll upload the updated dockerfile shortly.
I'll upload the updated dockerfile shortly.
The updated dockerfile is here:
https://github.com/nestybox/sysbox-external/blob/master/dockerfiles/alpine-docker/Dockerfile
Looks like that fixed it, thanks @ctalledo!
Great, thanks for filing the issue Chris.
Hi, I encountered the following issue when attempting to pull the openjdk image within a container using the sysbox-runc runtime,
This was run inside a container started as follows,
dockerd
was started from another window viadocker exec nestybox-docker dockerd -D
.I was able to reproduce the same error message building this smaller Dockerfile,