You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/create, cmd/initContainer: Mount the devpts file system at runtime
Anything that's specified during 'podman create ...' gets statically
baked into the container's configuration, and is either difficult or
impossible to change afterwards. This means that Toolbx containers
created with older versions of Toolbx keep diverging from those created
with newer versions. Hence, making it complicated to keep older
containers working with newer Toolbx.
Mounting the devpts file system at runtime as part of the Toolbx
container's entry point will make it possible to update the attributes
of the mount, if necessary, for both existing and newly created
containers.
For what it's worth, this does alter the mount options by removing
'context'.
With 'podman create --mount type=devpts,destination=/dev/pts' it was:
$ mount | grep
...
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,
context="system_u:object_r:container_file_t:s0:c1022,c1023",
gid=100005,mode=620,ptmxmode=666)
Now with 'mount -t devpts -o noexec,nosuid,gid=5,mode=620,ptmxmode=666'
it is:
$ mount | grep
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,
gid=100005,mode=620,ptmxmode=666)
containers#1016
0 commit comments