You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
[](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:
113
112
114
113
## Usage
115
114
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.
117
116
118
117
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
119
118
@@ -155,12 +154,11 @@ docker run -d \
155
154
-v /path/to/data:/data \
156
155
--restart unless-stopped \
157
156
lscr.io/linuxserver/emulatorjs:latest
158
-
159
157
```
160
158
161
159
## Parameters
162
160
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.
164
162
165
163
| Parameter | Function |
166
164
| :----: | --- |
@@ -181,10 +179,10 @@ You can set any environment variable from a file by using a special prepend `FIL
181
179
As an example:
182
180
183
181
```bash
184
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
182
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
185
183
```
186
184
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.
188
186
189
187
## Umask for running applications
190
188
@@ -193,15 +191,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
193
191
194
192
## User / Group Identifiers
195
193
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`.
197
195
198
196
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
199
197
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:
@@ -212,12 +215,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
212
215
213
216
## Support Info
214
217
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
+
```
221
241
222
242
## Updating Info
223
243
@@ -227,38 +247,83 @@ Below are the instructions for updating containers:
227
247
228
248
### Via Docker Compose
229
249
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
+
```
235
281
236
282
### Via Docker Run
237
283
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
+
241
302
* 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
+
```
243
308
244
309
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
245
310
246
311
* Pull the latest image at its tag and replace it with the same env variables in one run:
247
312
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
+
```
254
319
255
320
* You can also remove the old dangling images: `docker image prune`
256
321
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).
* 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.
0 commit comments