mirror of https://github.com/docker/cli.git
Merge pull request #768 from thaJeztah/warn-unsupported-pid
Add "pid" to unsupported options list
This commit is contained in:
commit
4a66821309
|
@ -657,6 +657,7 @@ services:
|
||||||
context: ./web
|
context: ./web
|
||||||
links:
|
links:
|
||||||
- bar
|
- bar
|
||||||
|
pid: host
|
||||||
db:
|
db:
|
||||||
image: db
|
image: db
|
||||||
build:
|
build:
|
||||||
|
@ -670,7 +671,7 @@ services:
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
unsupported := GetUnsupportedProperties(configDetails)
|
unsupported := GetUnsupportedProperties(configDetails)
|
||||||
assert.Equal(t, []string{"build", "links"}, unsupported)
|
assert.Equal(t, []string{"build", "links", "pid"}, unsupported)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBuildProperties(t *testing.T) {
|
func TestBuildProperties(t *testing.T) {
|
||||||
|
|
|
@ -17,6 +17,7 @@ var UnsupportedProperties = []string{
|
||||||
"links",
|
"links",
|
||||||
"mac_address",
|
"mac_address",
|
||||||
"network_mode",
|
"network_mode",
|
||||||
|
"pid",
|
||||||
"privileged",
|
"privileged",
|
||||||
"restart",
|
"restart",
|
||||||
"security_opt",
|
"security_opt",
|
||||||
|
|
Loading…
Reference in New Issue