diff --git a/cli/compose/loader/loader_test.go b/cli/compose/loader/loader_test.go index c2df0f8252..2e607be17f 100644 --- a/cli/compose/loader/loader_test.go +++ b/cli/compose/loader/loader_test.go @@ -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) { diff --git a/cli/compose/types/types.go b/cli/compose/types/types.go index 852c400060..6a9b8c80c0 100644 --- a/cli/compose/types/types.go +++ b/cli/compose/types/types.go @@ -17,6 +17,7 @@ var UnsupportedProperties = []string{ "links", "mac_address", "network_mode", + "pid", "privileged", "restart", "security_opt",