# Docker command line arguments in rancher

**URL:** <https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234>\
**Category:** Rancher 1.x\
**Created:** [August 11, 2015, 3:57pm UTC](https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234 "2015-08-11T15:57:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marceloaguero](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@marceloaguero](https://forums.suse.com/u/marceloaguero)\
**Post date:** [August 11, 2015, 3:57pm UTC](https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234/1 "2015-08-11T15:57:31Z")

</div>

Hi, I need to run a NFS server container using [https://hub.docker.com/r/cpuguy83/nfs-server/](https://hub.docker.com/r/cpuguy83/nfs-server/)

That container runs like this:  
docker run -d --name nfs --privileged cpuguy83/nfs-server /path/to/share /path/to/share2 /path/to/shareN

If I want to create a rancher service with that docker image, where should I specify those arguments (/path/to/share /path/to/share2 /path/to/shareN)?

Besides that, do you have any experience implementing NFS service in docker? which docker image do you suggest?

---

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [August 12, 2015, 6:19am UTC](https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234/2 "2015-08-12T06:19:17Z")

</div>

Hi @marceloaguero,

Those options are passed as command and args (see the [general form](https://docs.docker.com/reference/run/#general-form) docs for the `run` command), and are available under the advanced options section on the Add Service page.

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/0308623a4151f270c5d5db7b5718adb800d0f620.png)

Ps.  
Ref. to the Dockerfile docs for the [CMD](https://docs.docker.com/reference/builder/#cmd) directive how command vs. entrypoint is used.

Pps.  
In case entrypoint is defined, and not overridden by the run command, the command and its arguments are simply passed as (additional) arguments to the entrypoint.

---

<div class="post-metadata">

**Author:** ![marceloaguero](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@marceloaguero](https://forums.suse.com/u/marceloaguero)\
**Post date:** [August 15, 2015, 11:39pm UTC](https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234/3 "2015-08-15T23:39:03Z")

</div>

I understand. I’ll keep this in mind when defining my own entrypoints.

---

<div class="post-metadata">

**Author:** ![jmbldwn](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jmbldwn/32/3746_2.png) [@jmbldwn](https://forums.suse.com/u/jmbldwn)\
**Post date:** [June 16, 2017, 4:16pm UTC](https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234/4 "2017-06-16T16:16:36Z")

</div>

I don’t see an advanced options section under Add Service. I’m running 1.6.0.

Is it just me?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [June 16, 2017, 6:04pm UTC](https://forums.suse.com/t/docker-command-line-arguments-in-rancher/234/5 "2017-06-16T18:04:43Z")

</div>

That screenshot is almost 2 years old so the UI looks a lot different, but the same command and endpoint field exist.
