nestybox / sysbox

An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.
Apache License 2.0
2.78k stars 152 forks source link

[bug] can't create containers using sysbox-runtime #583

Closed typoworx-de closed 1 year ago

typoworx-de commented 2 years ago

I'm new to sysbox and just gave it a test using sysbox-ce on ubuntu with docker 20.10.7.

After installing I enabled sysbox-runc in /etc/docker/daemon.json

{
    "default-runtime": "sysbox-runc",
    "runtimes": {
        "sysbox-runc": {
            "path": "/usr/bin/sysbox-runc"
        }
    }
}

Trying to deploy using docker-compose for a simple php-stack (php-fpm + nginx) gives me:

Error response from daemon: OCI runtime create failed: container_linux.go:425: starting container process caused: process_linux.go:607: container init caused: process_linux.go:578: handleReqOp caused: rootfs_init_linux.go:366: failed to mkdirall /var/lib/sysbox/rootfs/9d9bf776c84b9c333f7c865c47f8d54de1654d0ac2bd49846676144ca140e136/top/merged/sys/kernel/tracing: mkdir /var/lib/sysbox/rootfs/9d9bf776c84b9c333f7c865c47f8d54de1654d0ac2bd49846676144ca140e136/top/merged/sys/kernel/tracing: operation not permitted caused: mkdir /var/lib/sysbox/rootfs/9d9bf776c84b9c333f7c865c47f8d54de1654d0ac2bd49846676144ca140e136/top/merged/sys/kernel/tracing: operation not permitted: unknown

And:

sudo ls -lah /var/lib/sysbox/rootfs/9d9bf776c84b9c333f7c865c47f8d54de1654d0ac2bd49846676144ca140e136/top/merged/sys/kernel/tracing
-> not found!

sudo ls -lah /var/lib/sysbox/rootfs/9d9bf776c84b9c333f7c865c47f8d54de1654d0ac2bd49846676144ca140e136
-> not found!

Without sysbox-runc the docker-stack will deploy and work.

ctalledo commented 2 years ago

Hi @typoworx-de,

Thanks for giving Sysbox a shot!

Can you share the Docker compose file and Docker image(s) you used, so we can reproduce the problem on our side?

(we are out-of-office right now, but will take a look when we get back).

ctalledo commented 1 year ago

Stale, closing.