From 0ab760a1367dcb223eb95d8b5eadc6aa0fe149b9 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 11 May 2017 15:26:38 +0200 Subject: [PATCH] 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 --- cli/compose/convert/service.go | 1 + cli/compose/types/types.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/compose/convert/service.go b/cli/compose/convert/service.go index a7fc3e5bd4..f6808a2d5c 100644 --- a/cli/compose/convert/service.go +++ b/cli/compose/convert/service.go @@ -129,6 +129,7 @@ func convertService( TTY: service.Tty, OpenStdin: service.StdinOpen, Secrets: secrets, + ReadOnly: service.ReadOnly, }, LogDriver: logDriver, Resources: resources, diff --git a/cli/compose/types/types.go b/cli/compose/types/types.go index d9be14d223..88ee84d463 100644 --- a/cli/compose/types/types.go +++ b/cli/compose/types/types.go @@ -18,7 +18,6 @@ var UnsupportedProperties = []string{ "mac_address", "network_mode", "privileged", - "read_only", "restart", "security_opt", "shm_size",