Description
Coming from #102 (comment) and #92 (comment)
@1138-4eb wrote:
About GUI applications and kata, did you actually try it or is there any specific reason why you think that it is not supported? I ask it because kata is expected to replace runc, so the docker run
command does not change at all. Therefore, it should be possible to share an X server from the host through a TCP port. For example, sharing folders with -v
works as expected.
default-runtime: nvidia
default-runtime: kata-runtimeAre these possible configurations of docker daemon instead of using run option
--runtime
? You are right that x11docker should check for them if possible.
Yes. Precisely, I found about it because kata-runtime was set up as default in a machine I used. ATM, docker build
does not support --runtime
(see moby/buildkit#842), so the mechanism to change it is to modify the default and restart the daemon.
See https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file. If /etc/docker/daemon.json
does not exist, just create it:
{
"default-runtime": "runc"
}
Custom example for kata-runtime
installation (to keep using runc
as default):
{
"default-runtime": "runc",
"runtimes": {
"kata-runtime": {
"path": "/snap/kata-containers/current/usr/bin/kata-runtime",
"runtimeArgs": [
"--kata-config /etc/kata/configuration.toml"
]
}
}
}
This is also explained at https://docs.nvidia.com/dgx/nvidia-container-runtime-upgrade/index.html#using-nv-container-runtime for nvidia
.
Nonetheless, you can retrieve this info with docker info
, so you don't need to check where it comes from:
# docker info
...
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: kata-runtime runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
...