-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
supporting custom bundle file name #560
Comments
On Mon, Sep 12, 2016 at 06:04:42AM -0700, Ian Park wrote:
My preferred solution to this would be to relax the “configuration Making the filename/path adjustable is a step in the flexibility |
@wking Thanks! /home/vagrant/runc/job1/config.json
And following command works normally.
|
On Tue, Sep 13, 2016 at 07:54:58AM -0700, Ian Park wrote:
I agree that this should be legal, but I think the current spec |
with #558 merged is this issue resolved? On Tue, Sep 13, 2016 at 11:15 AM W. Trevor King [email protected]
|
@vbatts it seems like #558 resolved #469 but #560 (this one) I want to use runC for my project using short-lived containers, where each container instance needs different configuration and mount points. For that I have to create a unique directory for each config.json just because of the file name collision. Considering that Docker supports this use case in a simply way, runC should also do so. |
@ianpark Why is making a directory such an issue? Its cheap and also acts as a synchronization point for multiple processes trying to reserve an ID as mkdir is atomic. Overall, runc is not going to have the polish of docker as its not designed to, much of the orchestration is left up to the caller of runc. Leaving the docker features out of runc is what makes it generally useful for everyone. |
@ianpark from what i've been reading so far, assuming I've understood well, it seems you would like to generate spec files dynamically. https://github.com/opencontainers/runtime-tools could be used for that purpose. |
On Wed, Aug 02, 2017 at 11:58:30AM -0700, Camilo Aguilar wrote:
@ianpark from what i've been reading so far, assuming I've
understood well, it seems you would like to generate spec files
dynamically.
I think @ianpark's point was less about “how/when do I generate the
configuration JSON?” and more about “why do I have to create
per-container bundle directories to hold my configuration JSON?”. The
spec currently requires a bundle directory holding ‘config.json’, but
I don't see a solid reason for that requirement (e.g. see #423, where
I attempted to remove the requirement).
|
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.
The text was updated successfully, but these errors were encountered: