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",