diff --git a/cli/compose/loader/full-example.yml b/cli/compose/loader/full-example.yml index e9f4183aee28..00032a0508ca 100644 --- a/cli/compose/loader/full-example.yml +++ b/cli/compose/loader/full-example.yml @@ -197,6 +197,7 @@ services: other-other-network: pid: "host" + platform: "linux/x86_64" ports: - 3000 diff --git a/cli/compose/schema/bindata.go b/cli/compose/schema/bindata.go index 9649d03070b8..11cc23ac7989 100644 --- a/cli/compose/schema/bindata.go +++ b/cli/compose/schema/bindata.go @@ -467,44 +467,44 @@ DoTuq9lAU9Q4O1xV/59X/w8AAP//zRo7vm9CAAA= "/data/config_schema_v3.7.json": { local: "data/config_schema_v3.7.json", - size: 17540, + size: 17579, modtime: 1518458244, compressed: ` -H4sIAAAAAAAC/+xcS2/jOBK++1cImrlNHg3sYBfbtz3uafe8gVugqbLNCUVyipQTT8P/faGnJYoUaVvp -ZDBpoNGJVHzUk18VS/19lSTpz5ruoSDp1yTdG6O+Pj7+pqW4b54+SNw95ki25v7Lr4/Ns5/Su2ocy6sh -VIot22XNm+zwt4d/PFTDGxJzVFARyc1vQE3zDOH3kiFUg5/SA6BmUqTru1X1TqFUgIaBTr8m1eaSpCfp -Hgym1QaZ2KX141M9Q5KkGvDA6GCGfqs/PZ7nf+zJ7uxZB5utnytiDKD473Rv9etvT+T+j3/d/+/L/T8f -svv1Lz+PXlfyRdg2y+ewZYIZJkW/ftpTntqfTv3CJM9rYsJHa28J1zDmWYB5kfgc4rkneyee2/UdPI/Z -OUheFkENdlTvxEyz/DL600ARTNhkG6p3s9hq+WUYbqJGiOGO6p0Ybpa/jeFVx7R7j+m31/vq31M95+x8 -zSyD/dVMjGKeS5yumOOXZy9QjyRzUFwe6527ZdYQFCBM2ospSdJNyXhuS10K+E81xdPgYZJ8t8P7YJ76 -/eg3v1H07z289O+pFAZeTc3U/NKNCCR9BtwyDrEjCDaW7hEZZ9pkErOcUeMcz8kG+E0zUEL3kG1RFsFZ -tlnDiXZO1EXwSM4NwR1ES1bvi0yzP0ZyfUqZM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zO4X6bBTxWx +5Yokh1yG+jtuz/hbKkfQJUzw1R8/igAc1HsQgIymA2vwXDlj2jcqotxu2TX2kJzVoeMS5k2lqPcR43lu +dHWl3yHGQK6MjnKtL0xk8mU+zFpA2ooTChY0u1XQ2iBhwsxuVbDFohB2gCAoTB7LcS5oIh+0XKJdIZDs +HUpBtyr/hmDQ6W6m8Px4wCgwHGrPoTW/tib6CTOmKYKBbuWuLXEVbwnTVpA8N7mqoKNOjoQXEbWNq5pG +fDmBiMFn51dMIZ22ZAsEaDH9WVFdRA1VKtXy9Ylwp9AmnB1niuRLedjovqrEGTB8BN9ZbIUn/fyxfefd +uHfSo9WnLiF118lqE61i78FYbv9VbswuKrqSaMQYQg9R+baZaY8bbqJRet3pqhqqT081w1P92e36x9lg +80Fm8KO/iir8DeUNlhfx9cQH0Os7q2t0GTrV1VB9quu91WU1q/TUNi6uTEkyuvF21a+ldNuwyRz/DYIv +gvFuylfisxZthDjN+YL3x8MvE0hxqkH+jSDWAm2Cbp1aKYpV1xRof8Xt9xHt+NE33SWf4jQq/n0fNobU +32NvBvKxSOrvUnoX9iYq8HV96W23pbRfXHs65YbR4ar8e179PwAA//9AAp0Lq0QAAA== `, }, diff --git a/cli/compose/schema/data/config_schema_v3.7.json b/cli/compose/schema/data/config_schema_v3.7.json index 4c3d24dcd279..bd4c0564a722 100644 --- a/cli/compose/schema/data/config_schema_v3.7.json +++ b/cli/compose/schema/data/config_schema_v3.7.json @@ -203,7 +203,7 @@ ] }, "pid": {"type": ["string", "null"]}, - + "platform": {"type": "string"}, "ports": { "type": "array", "items": { diff --git a/cli/compose/types/types.go b/cli/compose/types/types.go index 397bc79c1f04..792d1b683282 100644 --- a/cli/compose/types/types.go +++ b/cli/compose/types/types.go @@ -19,6 +19,7 @@ var UnsupportedProperties = []string{ "mac_address", "network_mode", "pid", + "platform", "privileged", "restart", "security_opt",