close
The Wayback Machine - https://web.archive.org/web/20251014210019/https://github.com/docker/cli/pull/768
Skip to content

Conversation

thaJeztah
Copy link
Member

Services do not support custom "pid"-modes (e.g. --pid=host, see moby/swarmkit#1605), but this option was ignored silently when deploying a stack.

This patch adds pid to the list of unsupported options so that a warning is printed;

With this patch applied:

$ docker stack deploy -c docker-compose.yml foobar
Ignoring unsupported options: pid

Creating network foobar_default
Creating service foobar_test

- How to verify it

Deploy this docker-compose file, and verify that a warning is printed;

version: '3.4'
services:
    test:
        image: nginx:alpine
        pid: host

- Description for the changelog

Services do not support custom "pid"-modes (e.g. `--pid=host`), but this
option was ignored silently when deploying a stack.

This patch adds `pid` to the list of unsupported options so that a warning
is printed;

With this patch applied:

    $ docker stack deploy -c docker-compose.yml foobar
    Ignoring unsupported options: pid

    Creating network foobar_default
    Creating service foobar_test

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-io
Copy link

codecov-io commented Dec 27, 2017

Codecov Report

Merging #768 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #768      +/-   ##
==========================================
- Coverage   53.46%   53.46%   -0.01%     
==========================================
  Files         218      218              
  Lines       14642    14642              
==========================================
- Hits         7829     7828       -1     
- Misses       6327     6328       +1     
  Partials      486      486

Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

LGTM

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 🚜

@vdemeester vdemeester merged commit 4a66821 into docker:master Jan 2, 2018
@GordonTheTurtle GordonTheTurtle added this to the 18.01.0 milestone Jan 2, 2018
@thaJeztah thaJeztah deleted the warn-unsupported-pid branch January 2, 2018 15:07
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.

5 participants