# Multiple engineOpt not supported

**URL:** <https://forums.suse.com/t/multiple-engineopt-not-supported/1411>\
**Category:** Rancher 1.x\
**Created:** [January 7, 2016, 7:58pm UTC](https://forums.suse.com/t/multiple-engineopt-not-supported/1411 "2016-01-07T19:58:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebishop](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ebishop](https://forums.suse.com/u/ebishop)\
**Post date:** [January 7, 2016, 7:58pm UTC](https://forums.suse.com/t/multiple-engineopt-not-supported/1411/1 "2016-01-07T19:58:23Z")

</div>

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](http://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](http://cisco.com)

---

<div class="post-metadata">

**Author:** ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)\
**Post date:** [January 12, 2016, 9:50pm UTC](https://forums.suse.com/t/multiple-engineopt-not-supported/1411/2 "2016-01-12T21:50:10Z")

</div>

@ebishop definitely a bug. I’ve opened [https://github.com/rancher/rancher/issues/3242](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.
