You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compose support flow sequence written as a comma separated list within square brackets? #2750
$ mkdir /tmp/foo
$ mkdir /tmp/bar
$ export FOO_BAR="['/tmp/bar:/bar', '/tmp/foo:/foo']"
$ docker-compose up
ERROR: Validation failed in file './docker-compose.yml', reason(s):
Service 'test' configuration key 'volumes' contains an invalid type, it should be an array
This is the same idea as #2730, only scalar strings are supported. You could set a single value, or have a variable for each, but you can't set an array in a variable.
Activity
dnephin commentedon Jan 26, 2016
This is the same idea as #2730, only scalar strings are supported. You could set a single value, or have a variable for each, but you can't set an array in a variable.
tiry commentedon Jan 26, 2016
This is indeed the same issue.
Looks like based on the
service_schemajsonschema we could try an "automatic cast" after the interpolation.