Setting Up Gvisior for first time: Failing

91 views
Skip to first unread message

Prason Pandey

unread,
Jul 22, 2023, 7:40:24 AM7/22/23
to gVisor Users [Public]
Getting this error:
docker run --runtime=runsc ubuntu echo "Hello, gVisor"
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/e4614ce233a4d2bff08f2e1fb6aff698bb61515cb894cfbdf7695a45b58f8abe/log.json: no such file or directory): /usr/local/bin/runsc did not terminate successfully: exit status 1: unknown.
ERRO[0000] error waiting for container:

Ayush Ranjan

unread,
Jul 24, 2023, 2:51:18 PM7/24/23
to Prason Pandey, gVisor Users [Public]
Hi Prason,

It is hard to tell exactly what is going wrong from the error message.

In /etc/docker/daemon.json, have you configured runsc with --debug-log= flag? If not could you specify that flag and also set debug logging (--debug flag).
A good value for this flag can be --debug-log="/tmp/logs/runsc.log.%TEST%.%TIMESTAMP%.%COMMAND%". This way each command will have its own log file.
Then restart docker daemon (sudo systemctl restart docker) and rerun the docker container with runsc. It should produce logs in /tmp/logs directory. Can you provide those log files? They should indicate what is failing.

--
You received this message because you are subscribed to the Google Groups "gVisor Users [Public]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gvisor-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gvisor-users/7321398e-cbd4-4a9f-b7d4-46a819366835n%40googlegroups.com.


--
Ayush Ranjan
Reply all
Reply to author
Forward
0 new messages