Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.

Commit 4876c58

Browse files
Bot Updating Templated Files
1 parent e0a055f commit 4876c58

File tree

1 file changed

+100
-35
lines changed

1 file changed

+100
-35
lines changed

README.md

Lines changed: 100 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2-
<!-- Please read the https://github.com/linuxserver/docker-endlessh/blob/main/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-endlessh/blob/main/.github/CONTRIBUTING.md -->
43
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
54

65
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
@@ -64,7 +63,7 @@ The app listens on the port mapped for ssh connections. To log to file, set the
6463

6564
## Usage
6665

67-
Here are some example snippets to help you get started creating a container.
66+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
6867

6968
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
7069

@@ -108,12 +107,11 @@ docker run -d \
108107
-v /path/to/appdata:/config `#optional` \
109108
--restart unless-stopped \
110109
lscr.io/linuxserver/endlessh:latest
111-
112110
```
113111

114112
## Parameters
115113

116-
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
114+
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
117115

118116
| Parameter | Function |
119117
| :----: | --- |
@@ -135,10 +133,10 @@ You can set any environment variable from a file by using a special prepend `FIL
135133
As an example:
136134

137135
```bash
138-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
136+
-e FILE__MYVAR=/run/secrets/mysecretvariable
139137
```
140138

141-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
139+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
142140

143141
## Umask for running applications
144142

@@ -147,15 +145,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
147145

148146
## User / Group Identifiers
149147

150-
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
148+
When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
151149

152150
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
153151

154-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
152+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
155153

156154
```bash
157-
$ id username
158-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
155+
id your_user
156+
```
157+
158+
Example output:
159+
160+
```text
161+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
159162
```
160163

161164
## Docker Mods
@@ -166,12 +169,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
166169

167170
## Support Info
168171

169-
* Shell access whilst the container is running: `docker exec -it endlessh /bin/bash`
170-
* To monitor the logs of the container in realtime: `docker logs -f endlessh`
171-
* container version number
172-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' endlessh`
173-
* image version number
174-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/endlessh:latest`
172+
* Shell access whilst the container is running:
173+
174+
```bash
175+
docker exec -it endlessh /bin/bash
176+
```
177+
178+
* To monitor the logs of the container in realtime:
179+
180+
```bash
181+
docker logs -f endlessh
182+
```
183+
184+
* Container version number:
185+
186+
```bash
187+
docker inspect -f '{{ index .Config.Labels "build_version" }}' endlessh
188+
```
189+
190+
* Image version number:
191+
192+
```bash
193+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/endlessh:latest
194+
```
175195

176196
## Updating Info
177197

@@ -181,38 +201,83 @@ Below are the instructions for updating containers:
181201

182202
### Via Docker Compose
183203

184-
* Update all images: `docker-compose pull`
185-
* or update a single image: `docker-compose pull endlessh`
186-
* Let compose update all containers as necessary: `docker-compose up -d`
187-
* or update a single container: `docker-compose up -d endlessh`
188-
* You can also remove the old dangling images: `docker image prune`
204+
* Update images:
205+
* All images:
206+
207+
```bash
208+
docker-compose pull
209+
```
210+
211+
* Single image:
212+
213+
```bash
214+
docker-compose pull endlessh
215+
```
216+
217+
* Update containers:
218+
* All containers:
219+
220+
```bash
221+
docker-compose up -d
222+
```
223+
224+
* Single container:
225+
226+
```bash
227+
docker-compose up -d endlessh
228+
```
229+
230+
* You can also remove the old dangling images:
231+
232+
```bash
233+
docker image prune
234+
```
189235

190236
### Via Docker Run
191237

192-
* Update the image: `docker pull lscr.io/linuxserver/endlessh:latest`
193-
* Stop the running container: `docker stop endlessh`
194-
* Delete the container: `docker rm endlessh`
238+
* Update the image:
239+
240+
```bash
241+
docker pull lscr.io/linuxserver/endlessh:latest
242+
```
243+
244+
* Stop the running container:
245+
246+
```bash
247+
docker stop endlessh
248+
```
249+
250+
* Delete the container:
251+
252+
```bash
253+
docker rm endlessh
254+
```
255+
195256
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
196-
* You can also remove the old dangling images: `docker image prune`
257+
* You can also remove the old dangling images:
258+
259+
```bash
260+
docker image prune
261+
```
197262

198263
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
199264

200265
* Pull the latest image at its tag and replace it with the same env variables in one run:
201266

202-
```bash
203-
docker run --rm \
204-
-v /var/run/docker.sock:/var/run/docker.sock \
205-
containrrr/watchtower \
206-
--run-once endlessh
207-
```
267+
```bash
268+
docker run --rm \
269+
-v /var/run/docker.sock:/var/run/docker.sock \
270+
containrrr/watchtower \
271+
--run-once endlessh
272+
```
208273

209274
* You can also remove the old dangling images: `docker image prune`
210275

211-
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
276+
**warning**: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
212277

213278
### Image Update Notifications - Diun (Docker Image Update Notifier)
214279

215-
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
280+
**tip**: We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
216281

217282
## Building locally
218283

0 commit comments

Comments
 (0)