Closed teja156 closed 1 month ago
Hi @teja156, thanks for opening the issue.
Try the following:
1) Set the Docker default runtime to "sysbox-runc" in /etc/docker/daemon.json
as shown in the docs.
2) Use the legacy Docker builder:
sudo DOCKER_BUILDKIT=0 docker build --no-cache -t alpine_test:new .
This should work (I just tested it).
The problem you had was that Docker now uses the newer buildkit builder by default, and the process of embedding images inside Sysbox containers does not yet work with the new builder unfortunately.
I will update the Sysbox docs accordingly.
Hope that helps!
Hello there, so I was following this guide https://github.com/nestybox/sysbox/blob/master/docs/quickstart/images.md#building-a-system-container-that-includes-inner-container-images--v012- to test pre-loading the sys container with some images. I used the exact same Dockerfile and
docker-pull.sh
script as shown in the guide.Dockerfile:
docker-pull.sh:
Command used to build the image:
However, during the build process,
dockerd
fails to start in the sys container and as a result, the images were not pre-loaded. Here are the logs/var/log/dockerd.log
:I have sysbox-runc set as the default docker runtime on the host. Docker version: 27.2.0 Sysbox version: 0.6.4 Host OS: Ubuntu 22.04.4 LTS (Ubuntu Jammy) Host Kernel Version: 6.5.0-44-generic
What am I doing wrong? Can someone guide me in the right direction? Thanks in advance.