File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ Here are some example snippets to help you get started creating a container.
6666```
6767docker create \
6868 --name=openssh-server \
69+ --hostname=openssh-server `#optional` \
6970 -e PUID=1000 \
7071 -e PGID=1000 \
7172 -e TZ=Europe/London \
@@ -94,6 +95,7 @@ services:
9495 openssh-server:
9596 image: linuxserver/openssh-server
9697 container_name: openssh-server
98+ hostname: openssh-server #optional
9799 environment:
98100 - PUID=1000
99101 - PGID=1000
@@ -118,6 +120,7 @@ Container images are configured using parameters passed at runtime (such as thos
118120
119121| Parameter | Function |
120122| :----: | --- |
123+ | ` --hostname=openssh-server ` | Optionally the hostname can be defined. |
121124| ` -p 2222 ` | ssh port |
122125| ` -e PUID=1000 ` | for UserID - see below for explanation |
123126| ` -e PGID=1000 ` | for GroupID - see below for explanation |
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ development_versions_items:
2525# container parameters
2626common_param_env_vars_enabled : true
2727param_container_name : " {{ project_name }}"
28+ param_usage_include_hostname : ' optional' # you can set it to 'optional'
29+ param_hostname : " {{ project_name }}"
30+ param_hostname_desc : " Optionally the hostname can be defined."
2831param_usage_include_vols : true
2932param_volumes :
3033 - { vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Contains all relevant configuration files." }
You can’t perform that action at this time.
0 commit comments