Repository navigation
Add a --pid=host feature to expose the host PID space to the container - #1011
Conversation
|
Would a maintainer mind adding feedback on this pull request? Thanks |
There was a problem hiding this comment.
Reading the docker-py client.py code, it may be appear your correct. I did actually test this in a real world environment, and I thought everything was necessary at the time, but I was doing the job at 3am, so its possible I made an error.
iI'll test without it next week and either submit results or submit a patch revision with this change reverted.
|
@dnephin Thanks a whole bunch for the review! I'll either fix the changes or provide a rationale why line |
|
Great, thanks for the contribution! |
|
Looks fine, but blocking on Jenkins :( soon, hopefully. |
|
@dnephin I addressed your comments and have tested the rebased master works properly for the pid:host use case. Regards |
There was a problem hiding this comment.
We still want to test against older versions, but I think we can disable the tests that we expect to fail when the version is older.
If we accept api version from the environment then we can set it based on the version we're testing against.
|
This patch has been rebased onto master which runs docker-dev downloaded from curl. |
|
@dnephin Any chance you can take another look and merge this pull request? I think it is ready to go. Regards |
|
LGTM I'll wait for @aanand to have another look and merge |
|
I like it - just needs a rebase and an integration test. |
Docker 1.5.0+ introduces a --pid=host feature which allows sharing of PID namespaces between baremetal and containers. This is useful for atomic upgrades, atomic rollbacks, and monitoring. For more details of a real-life use case, check out: http://sdake.io/2015/01/28/an-atomic-upgrade-process-for-openstack-compute-nodes/ Signed-off-by: Steven Dake <[email protected]>
|
@aanand rebased and passing master test cases - will add functional test today/tomorrow. |
Allow docker-compsoe to use the docker --pid=host API available in 1.17 Signed-off-by: Steven Dake <[email protected]>
|
@aanand Added two integration tests. One tests that the docker daemon returns a pidmode=net when passed the pid=host operation via service creation, and one tests that docker daemon returns '' for pidmode when passed None (which is the other condition the service creates. Testing that pidMode actually works correctly is a job for the docker test cases - I think we are covered there. Please advise if you would like additional work. Thanks! |
|
Yes, absolutely - if the container has the right configuration set, Compose has done its job as far as testing goes. Thanks. LGTM |
Add a --pid=host feature to expose the host PID space to the container
Add a --pid=host feature to expose the host PID space to the container Signed-off-by: Yuval Kohavi <[email protected]>
Add a --pid=host feature to expose the host PID space to the container Signed-off-by: Yuval Kohavi <[email protected]>
Docker 1.5.0 introduces a --pid=host feature which is fantastic for monitoring
containers from the baremetal system or atomically upgrading or rolling back
a deployed application.
For more details of a real-life use case, check out:
http://sdake.io/2015/01/28/an-atomic-upgrade-process-for-openstack-compute-nodes/
Docker-DCO-1.1-Signed-off-by: Steven Dake [email protected] sdake@github