File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ This will create:
5454* `container_cap_drop` (default _{}_) - List of capabilities to drop
5555* `container_network` (default _""_) - [Network settings](https://docs.docker.com/engine/reference/run/#network-settings)
5656* `container_user` (default _""_) - [User settings](https://docs.docker.com/engine/reference/run/#user)
57+ * `container_hostname` (default _""_) - Container host name: `--hostname` flag
5758* `container_devices` (default _[]_) - List of devices to add
5859* `container_privileged` (default _false_) - Whether the container should be privileged
5960* `container_start_post` - Optional command to be run by systemd after the container has started
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ container_cmd: []
77container_host_network : false
88container_network : " "
99container_user : " "
10+ container_hostname : " "
1011container_links : []
1112container_ports : []
1213container_volumes : []
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ ExecStart={{ docker_path }} run \
2929 {% if container_host_network == true %} --network host {% else %} {{ params('--publish', container_ports) }}{% endif %} \
3030 {% if container_network %} --network {{ container_network }}{% endif %} \
3131 {% if container_user %} --user {{ container_user }}{% endif %} \
32+ {% if container_hostname %} --hostname {{ container_hostname }}{% endif %} \
3233 {{ params('--link', container_links) }}\
3334 {{ params('--label', container_labels) }}\
3435 {{ params('--cap-add', container_cap_add) }}\
You can’t perform that action at this time.
0 commit comments