openSUSE / microos-toolbox

Script to run a toolbox container on openSUSE MicroOS
Apache License 2.0
54 stars 15 forks source link

Mount /dev/pts as mount type=devpts instead of --volume #50

Closed dcermak closed 1 year ago

dcermak commented 1 year ago

Mounting /dev/ into the container via --volume /dev:/dev:rslave does not work with podman + crun, as it dies with:

Error: crun: chown `/dev/pts/22`: Operation not permitted: OCI permission denied

This is very closely related to the issue reported by containers/toolbox against crun (https://github.com/containers/crun/issues/1158) where a bug in crun was fixed and the suggested way how to expose a tty is to use --mount type=devpts,destination=/dev/pts,uid=$ID