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 Jan 30, 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!")
@@ -46,7 +45,7 @@ Find us at:
46
45
47
46
## Supported Architectures
48
47
49
-
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
48
+
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
50
49
51
50
Simply pulling `lscr.io/linuxserver/minetest:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
Here are some example snippets to help you get started creating a container.
74
+
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
76
75
77
76
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
78
77
@@ -108,12 +107,11 @@ docker run -d \
108
107
-v /path/to/data:/config/.minetest \
109
108
--restart unless-stopped \
110
109
lscr.io/linuxserver/minetest:latest
111
-
112
110
```
113
111
114
112
## Parameters
115
113
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.
117
115
118
116
| Parameter | Function |
119
117
| :----: | --- |
@@ -131,10 +129,10 @@ You can set any environment variable from a file by using a special prepend `FIL
131
129
As an example:
132
130
133
131
```bash
134
-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
132
+
-e FILE__MYVAR=/run/secrets/mysecretvariable
135
133
```
136
134
137
-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
135
+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
138
136
139
137
## Umask for running applications
140
138
@@ -143,15 +141,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
143
141
144
142
## User / Group Identifiers
145
143
146
-
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`.
144
+
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`.
147
145
148
146
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
149
147
150
-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
148
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
@@ -162,12 +165,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
162
165
163
166
## Support Info
164
167
165
-
* Shell access whilst the container is running: `docker exec -it minetest /bin/bash`
166
-
* To monitor the logs of the container in realtime: `docker logs -f minetest`
167
-
* container version number
168
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' minetest`
169
-
* image version number
170
-
*`docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/minetest:latest`
168
+
* Shell access whilst the container is running:
169
+
170
+
```bash
171
+
docker exec -it minetest /bin/bash
172
+
```
173
+
174
+
* To monitor the logs of the container in realtime:
175
+
176
+
```bash
177
+
docker logs -f minetest
178
+
```
179
+
180
+
* Container version number:
181
+
182
+
```bash
183
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' minetest
184
+
```
185
+
186
+
* Image version number:
187
+
188
+
```bash
189
+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/minetest:latest
190
+
```
171
191
172
192
## Updating Info
173
193
@@ -177,38 +197,83 @@ Below are the instructions for updating containers:
177
197
178
198
### Via Docker Compose
179
199
180
-
* Update all images: `docker-compose pull`
181
-
* or update a single image: `docker-compose pull minetest`
182
-
* Let compose update all containers as necessary: `docker-compose up -d`
183
-
* or update a single container: `docker-compose up -d minetest`
184
-
* You can also remove the old dangling images: `docker image prune`
200
+
* Update images:
201
+
* All images:
202
+
203
+
```bash
204
+
docker-compose pull
205
+
```
206
+
207
+
* Single image:
208
+
209
+
```bash
210
+
docker-compose pull minetest
211
+
```
212
+
213
+
* Update containers:
214
+
* All containers:
215
+
216
+
```bash
217
+
docker-compose up -d
218
+
```
219
+
220
+
* Single container:
221
+
222
+
```bash
223
+
docker-compose up -d minetest
224
+
```
225
+
226
+
* You can also remove the old dangling images:
227
+
228
+
```bash
229
+
docker image prune
230
+
```
185
231
186
232
### Via Docker Run
187
233
188
-
* Update the image: `docker pull lscr.io/linuxserver/minetest:latest`
189
-
* Stop the running container: `docker stop minetest`
190
-
* Delete the container: `docker rm minetest`
234
+
* Update the image:
235
+
236
+
```bash
237
+
docker pull lscr.io/linuxserver/minetest:latest
238
+
```
239
+
240
+
* Stop the running container:
241
+
242
+
```bash
243
+
docker stop minetest
244
+
```
245
+
246
+
* Delete the container:
247
+
248
+
```bash
249
+
docker rm minetest
250
+
```
251
+
191
252
* 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)
192
-
* You can also remove the old dangling images: `docker image prune`
253
+
* You can also remove the old dangling images:
254
+
255
+
```bash
256
+
docker image prune
257
+
```
193
258
194
259
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
195
260
196
261
* Pull the latest image at its tag and replace it with the same env variables in one run:
197
262
198
-
```bash
199
-
docker run --rm \
200
-
-v /var/run/docker.sock:/var/run/docker.sock \
201
-
containrrr/watchtower \
202
-
--run-once minetest
203
-
```
263
+
```bash
264
+
docker run --rm \
265
+
-v /var/run/docker.sock:/var/run/docker.sock \
266
+
containrrr/watchtower \
267
+
--run-once minetest
268
+
```
204
269
205
270
* You can also remove the old dangling images: `docker image prune`
206
271
207
-
**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).
272
+
**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.
276
+
**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