-
Notifications
You must be signed in to change notification settings - Fork 593
Description
Related post: opencontainers/runc#1029
I've been using Docker for my project which uses short-lived containers. The basic concept of the project is running an unsafe (good but not guaranteed to be 100% secure) application handling confidential information of users. So, lots of docker containers are created and then removed simultaneously.
While I was trying to replace Docker with Runc, I realised that Runc does not support "-v" option, which was useful to mount random unique input paths dynamically for each container. So the realistic alternative is creating config.json with the required mount points for every single task.
And now I am encountering another issue. In order to create many containers with different mount locations, I will have to create a new directory for each config.json file, only because Runc CLI does not allow to change the config file name.
It may be useful to have an option to specify the file name (which defaults 'config.json' of course), or to upgrade the -b option to grab the json file name if it's provided.