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
I have some suggestions (already implemented in my version of the code, that you can find here).
The child process env is not initialized (PATH, HOME and TERM are missing, for example). Setting PATH allows the basic commands to be executed if /usr, /lib and /lib64 are mounted. This also removes the need of copying commands in the mount point, it's enough to pass the full path to the command in the command (/usr/bin/bash for example) and mounting the three folders mentioned.
I also added two separate switches for mounting readonly and readwrite mount points differently.
Regarding clearing the mount point, I added an identifier field for the container, that is used when creating the temporary mount point, in a way that the parent container can clean itself on exit.
Last, I added some code for chowning the mount points so that the user that runs internally the container is the owner of the root and the additional rw mount points. This may be improved by leaving 0 as the owner of the root and creating the home folder for the user, but I had not much time to add that feature too.
HTH :)
The text was updated successfully, but these errors were encountered:
Hi, thanks for your great tutorial.
I have some suggestions (already implemented in my version of the code, that you can find here).
The child process env is not initialized (PATH, HOME and TERM are missing, for example). Setting PATH allows the basic commands to be executed if
/usr
,/lib
and/lib64
are mounted. This also removes the need of copying commands in the mount point, it's enough to pass the full path to the command in the command (/usr/bin/bash
for example) and mounting the three folders mentioned.I also added two separate switches for mounting readonly and readwrite mount points differently.
Regarding clearing the mount point, I added an
identifier
field for the container, that is used when creating the temporary mount point, in a way that the parent container can clean itself on exit.Last, I added some code for chowning the mount points so that the user that runs internally the container is the owner of the root and the additional rw mount points. This may be improved by leaving 0 as the owner of the root and creating the home folder for the user, but I had not much time to add that feature too.
HTH :)
The text was updated successfully, but these errors were encountered: