Multiple engineOpt not supported

Using the Rancher API, I’m trying to set multiple dns entries and multiple dns-search entries. This is supported by Docker, but it seems that instead of adding multiple entries, the last one is the only option set. here’s and example:

If I create the VM with something like:

“engineOpt”: {,
“dns-search”: “docker”,
“dns-search”: “”,
“dns”: “”,
“dns”: “”},

The /etc/default/docker fill will have the following: (the dns-search and dns entries are overwritten instead of appended)

-H tcp://
-H unix:///var/run/docker.sock
–storage-driver aufs
–tlscacert /etc/docker/ca.pem
–tlscert /etc/docker/server.pem
–tlskey /etc/docker/server-key.pem
–label provider=openstack

@ebishop definitely a bug. I’ve opened to track.
Thanks for reporting; please refer to the the above github issue for further discussion or to keep tabs on the issue.