Skip to content

Introduce/document new IPC modes#367

Merged
vdemeester merged 1 commit intodocker:masterfrom
kolyshkin:ipcmode
Aug 25, 2017
Merged

Introduce/document new IPC modes#367
vdemeester merged 1 commit intodocker:masterfrom
kolyshkin:ipcmode

Conversation

@kolyshkin
Copy link
Contributor

This builds (and depends) on moby/moby#34087

@kolyshkin
Copy link
Contributor Author

I guess the tests will fail as it requires vendoring moby/moby

@codecov-io
Copy link

codecov-io commented Jul 20, 2017

Codecov Report

Merging #367 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #367      +/-   ##
==========================================
- Coverage   46.25%   46.23%   -0.02%     
==========================================
  Files         193      193              
  Lines       16097    16093       -4     
==========================================
- Hits         7445     7441       -4     
  Misses       8263     8263              
  Partials      389      389

Copy link
Contributor

@mdlinville mdlinville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming that you also added these command-line args to the code in moby/moby so that the auto-generation of the CLI docs will pick them up.

## IPC settings (--ipc)

--ipc="" : Set the IPC mode for the container,
'private': own IPC namespace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs the new none mode as well

Also we should remove the client-side validation of acceptable options, per moby/moby#34087 (review)

One thing I noticed that has to be fixed is this;

$ docker run --ipc=none -dit --name bar busybox
docker: --ipc: invalid IPC mode.

Looks like there's validation performed in the CLI; cli/command/container/opts.go#L424-L427.

We should remove that, as it's the daemon that should validate if a value is valid (important if the CLI version doesn't match the daemon version)

This builds (and depends) on moby/moby#34087

Version 2:
 - remove --ipc argument validation (it is now done by daemon)
 - add/document 'none' value
 - docs/reference/run.md: add a table with better modes description
 - dockerd(8) typesetting fixes

Version 3:
 - remove ipc mode tests from cli/command/container/opts_test.go

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin changed the title [WIP] Introduce/document new IPC modes Introduce/document new IPC modes Aug 15, 2017
@kolyshkin
Copy link
Contributor Author

This is no longer WIP

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐮

@kolyshkin
Copy link
Contributor Author

Anything else I need to do in order to get it merged?

@vdemeester
Copy link
Collaborator

@kolyshkin was waiting for the moby/moby PR to get merge 😛. It's merge so let's merge this one too 👍

@vdemeester vdemeester merged commit 8ebc03a into docker:master Aug 25, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.08.0 milestone Aug 25, 2017
@kolyshkin kolyshkin deleted the ipcmode branch August 28, 2017 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants