Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: Error response from daemon: unknown or invalid runtime name: sysbox-runc. #772

Open
bitnom opened this issue Jan 29, 2024 · 1 comment

Comments

@bitnom
Copy link

bitnom commented Jan 29, 2024

➜ sudo systemctl status sysbox -n20
[sudo] password for bitnom:
● sysbox.service - Sysbox container runtime
     Loaded: loaded (/lib/systemd/system/sysbox.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2024-01-29 00:24:22 EST; 16h ago
       Docs: https://github.com/nestybox/sysbox
   Main PID: 12047 (sh)
      Tasks: 2 (limit: 13886)
     Memory: 384.0K
     CGroup: /system.slice/sysbox.service
             ├─12047 /bin/sh -c "/usr/bin/sysbox-runc --version && /usr/bin/sysbox-mgr --disable-shiftfs --version && /usr/bin/sysb>
             └─12154 /bin/sleep infinity

Jan 29 00:24:22 DESKTOP-J6N1M4N systemd[1]: Started Sysbox container runtime.
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]: sysbox-runc
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]:         edition:         Community Edition (CE)
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]:         version:         0.6.3
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]:         commit:         e6ca9b930c43c0f20bb93ef3ef6af5bd49fd88ce
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]:         built at:         Mon Jan 29 00:07:49 UTC 2024
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]:         built by:
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12048]:         oci-specs:         1.1.0+dev
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12064]: sysbox-mgr
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12064]:         edition:         Community Edition (CE)
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12064]:         version:         0.6.3
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12064]:         commit:         03f5d7bc584fdcb2319b2c1831bd58581185fc1c
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12064]:         built at:         Mon Jan 29 00:08:12 UTC 2024
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12064]:         built by:
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12084]: sysbox-fs
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12084]:         edition:         Community Edition (CE)
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12084]:         version:         0.6.3
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12084]:         commit:         ff6e109d64856db9b4bce8d10226371d7797ba96
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12084]:         built at:         Mon Jan 29 00:08:07 UTC 2024
Jan 29 00:24:22 DESKTOP-J6N1M4N sh[12084]:         built by:

16:57:12 with bitnom in ~ took 10.8s …
➜ uname -r
5.15.133.1-microsoft-standard-WSL2

17:01:55 with bitnom in ~ …
➜ docker run --runtime=sysbox-runc hello-world
docker: Error response from daemon: unknown or invalid runtime name: sysbox-runc.
See 'docker run --help'.

I compiled the project from git master, and built and installed the .deb file. As you can see I used --disable-shiftfs in an attempt to overcome this issue.

Things I read:
#596 (comment)
#162
https://forums.docker.com/t/sysbox-runc-is-not-working-as-runtime-for-docker-in-ubuntu/134429
https://stackoverflow.com/questions/75343570/sysbox-runc-is-not-working-as-runtime-for-docker-in-ubuntu
#32
nestybox/sysbox-pkgr#121

@arukiidou
Copy link
Contributor

arukiidou commented Feb 14, 2024

@bitnom

Did you do it? following:

echo -e '{
   "runtimes": {
      "sysbox-runc": {
         "path": "/usr/bin/sysbox-runc"
      }
   }
}' | sudo tee /etc/docker/daemon.json

please check install guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants