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

Commit 58020b0

Browse files
Bot Updating Templated Files
1 parent 424877f commit 58020b0

File tree

1 file changed

+101
-36
lines changed

1 file changed

+101
-36
lines changed

README.md

Lines changed: 101 additions & 36 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-minetest/blob/master/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-minetest/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!")
@@ -46,7 +45,7 @@ Find us at:
4645

4746
## Supported Architectures
4847

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/).
5049

5150
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.
5251

@@ -72,7 +71,7 @@ https://hub.docker.com/r/linuxserver/minetest/tags
7271

7372
## Usage
7473

75-
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.
7675

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

@@ -108,12 +107,11 @@ docker run -d \
108107
-v /path/to/data:/config/.minetest \
109108
--restart unless-stopped \
110109
lscr.io/linuxserver/minetest: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
| :----: | --- |
@@ -131,10 +129,10 @@ You can set any environment variable from a file by using a special prepend `FIL
131129
As an example:
132130

133131
```bash
134-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
132+
-e FILE__MYVAR=/run/secrets/mysecretvariable
135133
```
136134

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.
138136

139137
## Umask for running applications
140138

@@ -143,15 +141,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
143141

144142
## User / Group Identifiers
145143

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`.
147145

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

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:
151149

152150
```bash
153-
$ id username
154-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
151+
id your_user
152+
```
153+
154+
Example output:
155+
156+
```text
157+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
155158
```
156159

157160
## Docker Mods
@@ -162,12 +165,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
162165

163166
## Support Info
164167

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+
```
171191

172192
## Updating Info
173193

@@ -177,38 +197,83 @@ Below are the instructions for updating containers:
177197

178198
### Via Docker Compose
179199

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+
```
185231

186232
### Via Docker Run
187233

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+
191252
* 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+
```
193258

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

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

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+
```
204269

205270
* You can also remove the old dangling images: `docker image prune`
206271

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).
208273

209274
### Image Update Notifications - Diun (Docker Image Update Notifier)
210275

211-
* 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.
212277

213278
## Building locally
214279

0 commit comments

Comments
 (0)