Comments (4)
Hi @cprevosteau , thanks for giving Sysbox a shot!
-
Can you double check the sysbox-mgr and sysbox-fs daemons are running? (e.g.,
ps -fu root | grep sysbox
) -
Can you double check the
shiftfs
module is present in the kernel? (lsmod | grep shiftfs
)
For example, in my host these result in:
cesar@focal:~/nestybox/sysbox$ ps -fu root | grep sysbox
root 3137321 1 0 Dec16 pts/0 00:00:08 sysbox-mgr --log /var/log/sysbox-mgr.log
root 3137339 1 0 Dec16 pts/0 00:09:12 sysbox-fs --log /var/log/sysbox-fs.log
cesar@focal:~/nestybox/sysbox$ lsmod | grep shiftfs
shiftfs 28672 0
And thus docker run --runtime=sysbox-runc hello-world
works without problem:
cesar@focal:~/nestybox/sysbox$ docker run --runtime=sysbox-runc hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
Thanks!
from sysbox.
Hi, thx for the quick answer !
Unfortunately nothing there :
1)
$ ps -fu root | grep sysbox
root 177555 1690 0 19:36 pts/5 00:00:00 sysbox-mgr --log /var/log/sysbox-mgr.log
root 177580 1690 0 19:36 pts/5 00:00:06 sysbox-fs --log /var/log/sysbox-fs.log
$ lsmod | grep shiftfs
shiftfs 28672 0
from sysbox.
Would you mind joining the sysbox slack channel? It's easier to debug that way. We can post the resolution back into this GitHub issue once we find the problem.
The link to the slack channel is here:
Link is here at the bottom of this page: https://github.com/nestybox/sysbox#contact
Thanks!
from sysbox.
After debugging this with @cprevosteau (thanks!), we found out that the problem was that the Docker data-root (which is typically at /var/lib/docker
on ext4) was configured to a different directory located on top of an LVM.
As far as I know there is nothing wrong with having the Docker data-root on top of an LVM, but for some reason (yet to be investigated) Sysbox is failing when creating the container in this case.
More specifically, when the docker data-root is on top of an LVM, the container's root filesystem is also on top of that LVM, and this causes sysbox-runc to fail very early when creating the container's init process. Unfortunately sysbox-runc is not providing much info on why the failure occurs. We only see getting the final child's pid from pipe caused
, meaning that the container's init process died for some reason very early after it was created.
Interestingly, we also noticed that Docker itself does not like the data-root on an LVM when configured with docker userns-remap. That is, if the Docker data-root is on top of an LVM and "userns-remap": "<some-user>"
is added to the /etc/docker/daemon.json
file, restarting Docker fails. If the data-root is moved to an ext4 physical partition, restarting Docker works without problem. Thus, there is some incompatibility in Docker itself between userns-remap and LVM.
from sysbox.
Related Issues (20)
- podman/buildah cannot list nestybox+cri-o containers HOT 2
- AKS sysbox nodes sporadically enter bad state (`stat failed on /var/lib/containers/storage/overlay/...`) HOT 16
- docker: Error response from daemon: unknown or invalid runtime name: sysbox-runc. HOT 1
- AKS sysbox container missing /proc/sys/net/ipv4/neigh/default HOT 8
- No such file or directory - unprivileged_userns_clone HOT 8
- Sysbox doesn't work with estargz compressed images
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? HOT 6
- EKS 1.28 won't install sysbox through sysbox-deploy-k8s daemonset HOT 5
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? HOT 3
- content of /proc/sys/kernel/random/uuid is always the same HOT 2
- Error in supervisord.conf of jenkins exemplary docker file HOT 2
- Kubernetes 1.29 support HOT 1
- failed to create sysbox-mgr: ID-mapping check failed on ZFS HOT 3
- can't build sysbox-in-docker image. `sysbox-runc` binary not available HOT 2
- writing /etc/resolv.conf caused: open /etc/resolv.conf: permission denied: unknown without "userns-remap":"sysbox"; kernel version is fine HOT 4
- sysbox k8s directory mounted as nobody HOT 9
- ingress networking in docker swarm in dind not working.. it's working fine on the docker host HOT 1
- Docker Desktop Compatibility (Windows 11) HOT 2
- Missing packages cmp, slices with 4a266da HOT 2
- sysbox-fs high cpu usage, infinite unmount calls on shared device HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysbox.