Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 391d9d4

Browse files
Bot Updating Templated Files
1 parent 07e0bf6 commit 391d9d4

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-emulatorjs/blob/master/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-emulatorjs/blob/master/.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!")
@@ -113,7 +112,7 @@ The folder names are:
113112

114113
## Usage
115114

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

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

@@ -155,12 +154,11 @@ docker run -d \
155154
-v /path/to/data:/data \
156155
--restart unless-stopped \
157156
lscr.io/linuxserver/emulatorjs:latest
158-
159157
```
160158

161159
## Parameters
162160

163-
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.
161+
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.
164162

165163
| Parameter | Function |
166164
| :----: | --- |
@@ -181,10 +179,10 @@ You can set any environment variable from a file by using a special prepend `FIL
181179
As an example:
182180

183181
```bash
184-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
182+
-e FILE__MYVAR=/run/secrets/mysecretvariable
185183
```
186184

187-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
185+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
188186

189187
## Umask for running applications
190188

@@ -193,15 +191,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
193191

194192
## User / Group Identifiers
195193

196-
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`.
194+
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`.
197195

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

200-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
198+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
201199

202200
```bash
203-
$ id username
204-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
201+
id your_user
202+
```
203+
204+
Example output:
205+
206+
```text
207+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
205208
```
206209

207210
## Docker Mods
@@ -212,12 +215,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
212215

213216
## Support Info
214217

215-
* Shell access whilst the container is running: `docker exec -it emulatorjs /bin/bash`
216-
* To monitor the logs of the container in realtime: `docker logs -f emulatorjs`
217-
* container version number
218-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' emulatorjs`
219-
* image version number
220-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/emulatorjs:latest`
218+
* Shell access whilst the container is running:
219+
220+
```bash
221+
docker exec -it emulatorjs /bin/bash
222+
```
223+
224+
* To monitor the logs of the container in realtime:
225+
226+
```bash
227+
docker logs -f emulatorjs
228+
```
229+
230+
* Container version number:
231+
232+
```bash
233+
docker inspect -f '{{ index .Config.Labels "build_version" }}' emulatorjs
234+
```
235+
236+
* Image version number:
237+
238+
```bash
239+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/emulatorjs:latest
240+
```
221241

222242
## Updating Info
223243

@@ -227,38 +247,83 @@ Below are the instructions for updating containers:
227247

228248
### Via Docker Compose
229249

230-
* Update all images: `docker-compose pull`
231-
* or update a single image: `docker-compose pull emulatorjs`
232-
* Let compose update all containers as necessary: `docker-compose up -d`
233-
* or update a single container: `docker-compose up -d emulatorjs`
234-
* You can also remove the old dangling images: `docker image prune`
250+
* Update images:
251+
* All images:
252+
253+
```bash
254+
docker-compose pull
255+
```
256+
257+
* Single image:
258+
259+
```bash
260+
docker-compose pull emulatorjs
261+
```
262+
263+
* Update containers:
264+
* All containers:
265+
266+
```bash
267+
docker-compose up -d
268+
```
269+
270+
* Single container:
271+
272+
```bash
273+
docker-compose up -d emulatorjs
274+
```
275+
276+
* You can also remove the old dangling images:
277+
278+
```bash
279+
docker image prune
280+
```
235281

236282
### Via Docker Run
237283

238-
* Update the image: `docker pull lscr.io/linuxserver/emulatorjs:latest`
239-
* Stop the running container: `docker stop emulatorjs`
240-
* Delete the container: `docker rm emulatorjs`
284+
* Update the image:
285+
286+
```bash
287+
docker pull lscr.io/linuxserver/emulatorjs:latest
288+
```
289+
290+
* Stop the running container:
291+
292+
```bash
293+
docker stop emulatorjs
294+
```
295+
296+
* Delete the container:
297+
298+
```bash
299+
docker rm emulatorjs
300+
```
301+
241302
* 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)
242-
* You can also remove the old dangling images: `docker image prune`
303+
* You can also remove the old dangling images:
304+
305+
```bash
306+
docker image prune
307+
```
243308

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

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

248-
```bash
249-
docker run --rm \
250-
-v /var/run/docker.sock:/var/run/docker.sock \
251-
containrrr/watchtower \
252-
--run-once emulatorjs
253-
```
313+
```bash
314+
docker run --rm \
315+
-v /var/run/docker.sock:/var/run/docker.sock \
316+
containrrr/watchtower \
317+
--run-once emulatorjs
318+
```
254319

255320
* You can also remove the old dangling images: `docker image prune`
256321

257-
**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).
322+
**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).
258323

259324
### Image Update Notifications - Diun (Docker Image Update Notifier)
260325

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

263328
## Building locally
264329

0 commit comments

Comments
 (0)