Docker-plugin: Start a build agent with extra parameters

Hello,
I’m using 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!

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?

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.