Skip to content

Commit

Permalink
Add optional hostname setting
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca authored and thelamer committed Dec 14, 2019
1 parent 2a50f35 commit 3c71f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -94,6 +95,7 @@ services:
openssh-server:
image: linuxserver/openssh-server
container_name: openssh-server
hostname: openssh-server #optional
environment:
- PUID=1000
- PGID=1000
Expand All @@ -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 |
Expand Down
3 changes: 3 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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." }
Expand Down

0 comments on commit 3c71f04

Please sign in to comment.