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
ERROR: json: cannot unmarshal string into Go value of type []string #2515
$ docker-compose up -d
Recreating 177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_177deb9c24_mycont
ERROR: json: cannot unmarshal string into Go value of type []string
I suspect that this is because latest updates installed.
If I wrap the string literals in [], it works again.
Single string values are supposed to work - this might be a regression resulting from a lot of refactoring around config processing. We don't appear to have enough tests in place.
Activity
aanand commentedon Dec 8, 2015
It looks like these are the offending lines:
If I wrap the string literals in
[], it works again.Single string values are supposed to work - this might be a regression resulting from a lot of refactoring around config processing. We don't appear to have enough tests in place.
dnephin commentedon Dec 8, 2015
Oops, the convert to list is only being applied during a merge of services. It also needs to be applied if there is no merge.
vskubriev commentedon Dec 9, 2015
@aanand How to wrap the string literals in
[]? Can you give an example ? This is true for all string literals with new config processing?aanand commentedon Dec 9, 2015
@vskubriev You can work around it like this:
It's not true for all string literals, only
dnsanddns_search.