mirror of https://github.com/docker/cli.git
Add support for `read_only` services in stack deploy
The `read_only` key in a composefile is not taken into account right now. Now that services support `--read-only`, so should `stack deploy` Ref: moby/moby#32994 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
0791b27e2b
commit
0ab760a136
|
@ -129,6 +129,7 @@ func convertService(
|
||||||
TTY: service.Tty,
|
TTY: service.Tty,
|
||||||
OpenStdin: service.StdinOpen,
|
OpenStdin: service.StdinOpen,
|
||||||
Secrets: secrets,
|
Secrets: secrets,
|
||||||
|
ReadOnly: service.ReadOnly,
|
||||||
},
|
},
|
||||||
LogDriver: logDriver,
|
LogDriver: logDriver,
|
||||||
Resources: resources,
|
Resources: resources,
|
||||||
|
|
|
@ -18,7 +18,6 @@ var UnsupportedProperties = []string{
|
||||||
"mac_address",
|
"mac_address",
|
||||||
"network_mode",
|
"network_mode",
|
||||||
"privileged",
|
"privileged",
|
||||||
"read_only",
|
|
||||||
"restart",
|
"restart",
|
||||||
"security_opt",
|
"security_opt",
|
||||||
"shm_size",
|
"shm_size",
|
||||||
|
|
Loading…
Reference in New Issue