youki icon indicating copy to clipboard operation
youki copied to clipboard

How to configure containerd to use youki instand of runc? Please provide the configuration guide.

Open hlb-source opened this issue 2 years ago • 3 comments

hlb-source avatar Nov 02 '23 11:11 hlb-source

https://github.com/containerd/containerd/blob/main/docs/cri/config.md#runtime-classes

cuisongliu avatar Nov 03 '23 07:11 cuisongliu

@hlb-source @cuisongliu Sorry, but we don't have the documentation for it. Could you contribute? It will probably help you. https://github.com/containers/youki/blob/28269200a5b0daf30f3d68c3f675db33bbfcf95a/tests/k8s/Dockerfile#L25-L32

utam0k avatar Nov 03 '23 12:11 utam0k

If you are using containerd through docker you can follow this guide: https://docs.docker.com/engine/alternative-runtimes/#youki

jprendes avatar Nov 06 '23 16:11 jprendes

@hlb-source I've found that ctr supports a straightforward method for using youki instead of runc.

sudo ctr run -t --runc-binary /path/to/youki docker.io/library/ubuntu:latest youki-hello

You can also verify that it indeed uses youki by executing the command in another shell:

sudo ps auxf | grep -i youki
...
root     3041060  0.0  0.1 2217060 26880 pts/5   Sl+  11:03   0:00  |   |   |           \_ ctr run -t --runc-binary /path/to/youki docker.io/library/ubuntu:latest youki-hello
root     3041080  0.0  0.0 1236380 10536 ?       Sl   11:03   0:00 /usr/bin/containerd-shim-runc-v2 -namespace default -id youki-hello -address /run/containerd/containerd.sock

anti-entropy123 avatar Apr 11 '24 03:04 anti-entropy123