# Docker-plugin: Start a build agent with extra parameters

**URL:** <https://community.jenkins.io/t/docker-plugin-start-a-build-agent-with-extra-parameters/2402>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [May 13, 2022, 10:27am UTC](https://community.jenkins.io/t/docker-plugin-start-a-build-agent-with-extra-parameters/2402 "2022-05-13T10:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dronky](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dronky](https://community.jenkins.io/u/dronky)\
**Post date:** [May 13, 2022, 10:27am UTC](https://community.jenkins.io/t/docker-plugin-start-a-build-agent-with-extra-parameters/2402/1 "2022-05-13T10:27:29Z")

</div>

Hello,  
I’m using [docker-plugin](https://github.com/jenkinsci/docker-plugin) with “Connect method = attach container” as a build agent and I’m wondering how could I specify additional parameters to run image with?  
For example, I would like to have a host networking enabled on this build agent, so I need to pass --network host parameter somehow.

There is a “Docker Command” in Docker Agent templates section, but it seems just having ‘docker run …’ there doesn’t work.

Do you have any examples?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dronky](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dronky](https://community.jenkins.io/u/dronky)\
**Post date:** [May 13, 2022, 11:49am UTC](https://community.jenkins.io/t/docker-plugin-start-a-build-agent-with-extra-parameters/2402/2 "2022-05-13T11:49:35Z")

</div>

Ok, finally found “Network” option in the Docker Agent templates, and there is a port forwarding option as well.  
Anyway, I’m still wondering what “Docker Command” does?

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [May 14, 2022, 12:23am UTC](https://community.jenkins.io/t/docker-plugin-start-a-build-agent-with-extra-parameters/2402/3 "2022-05-14T00:23:28Z")

</div>

Probably what command it runs to start the image. Typically I believe its /bin/cat so things can be piped through. I’ve left it default unless i needed to override it.
