Merge pull request #768 from thaJeztah/warn-unsupported-pid

Add "pid" to unsupported options list
This commit is contained in:
Vincent Demeester 2018-01-02 15:14:08 +01:00 committed by GitHub
commit 4a66821309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -657,6 +657,7 @@ services:
context: ./web
links:
- bar
pid: host
db:
image: db
build:
@ -670,7 +671,7 @@ services:
require.NoError(t, err)
unsupported := GetUnsupportedProperties(configDetails)
assert.Equal(t, []string{"build", "links"}, unsupported)
assert.Equal(t, []string{"build", "links", "pid"}, unsupported)
}
func TestBuildProperties(t *testing.T) {

View File

@ -17,6 +17,7 @@ var UnsupportedProperties = []string{
"links",
"mac_address",
"network_mode",
"pid",
"privileged",
"restart",
"security_opt",