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”: “cisco.com”,
“dns”: “172.15.22.1”,
“dns”: “61.100.7.213”},

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

DOCKER_OPTS=’
-H tcp://0.0.0.0:2376
-H unix:///var/run/docker.sock
–storage-driver aufs
–tlsverify
–tlscacert /etc/docker/ca.pem
–tlscert /etc/docker/server.pem
–tlskey /etc/docker/server-key.pem
–label provider=openstack
–dns=61.100.7.213
–dns-search=cisco.com

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