Add optional hostname setting

This commit is contained in:
aptalca 2019-12-13 17:42:31 -05:00 committed by Ryan Kuba
parent 2a50f35442
commit 3c71f04088
2 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,7 @@ Here are some example snippets to help you get started creating a container.
```
docker create \
--name=openssh-server \
--hostname=openssh-server `#optional` \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
@ -94,6 +95,7 @@ services:
openssh-server:
image: linuxserver/openssh-server
container_name: openssh-server
hostname: openssh-server #optional
environment:
- PUID=1000
- PGID=1000
@ -118,6 +120,7 @@ Container images are configured using parameters passed at runtime (such as thos
| Parameter | Function |
| :----: | --- |
| `--hostname=openssh-server` | Optionally the hostname can be defined. |
| `-p 2222` | ssh port |
| `-e PUID=1000` | for UserID - see below for explanation |
| `-e PGID=1000` | for GroupID - see below for explanation |

View File

@ -25,6 +25,9 @@ development_versions_items:
# container parameters
common_param_env_vars_enabled: true
param_container_name: "{{ project_name }}"
param_usage_include_hostname: 'optional' #you can set it to 'optional'
param_hostname: "{{ project_name }}"
param_hostname_desc: "Optionally the hostname can be defined."
param_usage_include_vols: true
param_volumes:
- { vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Contains all relevant configuration files." }