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
The lxc-template should be made more customizable. One use case is to configure the various cgroup subsystems, for example cpusets. Since there is a HTTP/REST interface coming, it makes sense to express this in JSON and for it to be useable from the command line.
I'd like to be able to do this on the command line with a new -j option:
# Pin the "Hello word" to cpus 0,1
docker run -j '{ "cgroup": { "cpuset.cpus": "0,1" } }' ubuntu /bin/sh -c "while true; do echo Hello world; done"
So 0.4 has just come out with the RESTful Remote API. The JSON expressed here could be used in the POST request of container/(id)/start.
Another use case for changing the lxc_template for advanced networking configuration. For instance, a given container may need to start with access to specific VLANs. This may change between different starts of the container.
@crosbymichael@shykes Hello, I'm coming up for air and able to revisit some of this work after Labor Day. I see pull request #1560, which achieves much of what this issue is about. I think it covers my specific use case.
But, it doesn't use JSON but rather command line args. I had suggested JSON because of how it can work with a REST API.
Shall I abandon this line of work? Or integrate JSON aspects once #1560 is accepted. Give me some guidance and I'll try to help out.
@neomantra The CLI takes the data from the command line and creates JSON requests to the REST Api. Everything supported on the CLI can be done directly via the REST Api.
Activity
Add JSON data to Container.Config, specified with -j option of "run" …
neomantra commentedon Apr 24, 2013
#111 has some discussion of specifying volumes with JSON and could be folded with this.
neomantra commentedon Jun 3, 2013
So 0.4 has just come out with the RESTful Remote API. The JSON expressed here could be used in the POST request of container/(id)/start.
Another use case for changing the lxc_template for advanced networking configuration. For instance, a given container may need to start with access to specific VLANs. This may change between different starts of the container.
shykes commentedon Aug 11, 2013
There is an ongoing pull request for this. Adding to 0.6 to keep track.
neomantra commentedon Aug 21, 2013
@crosbymichael @shykes Hello, I'm coming up for air and able to revisit some of this work after Labor Day. I see pull request #1560, which achieves much of what this issue is about. I think it covers my specific use case.
But, it doesn't use JSON but rather command line args. I had suggested JSON because of how it can work with a REST API.
Shall I abandon this line of work? Or integrate JSON aspects once #1560 is accepted. Give me some guidance and I'll try to help out.
crosbymichael commentedon Aug 21, 2013
@neomantra The CLI takes the data from the command line and creates JSON requests to the REST Api. Everything supported on the CLI can be done directly via the REST Api.
Merge pull request moby#439 from toshi38/stelau/fix-readme-drop-user
Merge pull request #439 from arkodg/19.03