Skip to content

Commit db4de3d

Browse files
Bot Updating Templated Files
1 parent a213c21 commit db4de3d

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-sqlitebrowser/blob/master/.github/CONTRIBUTING.md -->
3-
1+
<!-- DO NOT EDIT THIS FILE MANUALLY -->
2+
<!-- Please read https://github.com/linuxserver/docker-sqlitebrowser/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!")
@@ -97,7 +96,7 @@ This container is capable of delivering a true lossless image at a high framerat
9796

9897
## Usage
9998

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

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

@@ -136,12 +135,11 @@ docker run -d \
136135
-v /path/to/config:/config \
137136
--restart unless-stopped \
138137
lscr.io/linuxserver/sqlitebrowser:latest
139-
140138
```
141139

142140
## Parameters
143141

144-
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.
142+
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.
145143

146144
| Parameter | Function |
147145
| :----: | --- |
@@ -160,10 +158,10 @@ You can set any environment variable from a file by using a special prepend `FIL
160158
As an example:
161159

162160
```bash
163-
-e FILE__PASSWORD=/run/secrets/mysecretpassword
161+
-e FILE__MYVAR=/run/secrets/mysecretvariable
164162
```
165163

166-
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
164+
Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file.
167165

168166
## Umask for running applications
169167

@@ -172,15 +170,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu
172170

173171
## User / Group Identifiers
174172

175-
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`.
173+
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`.
176174

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

179-
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
177+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below:
180178

181179
```bash
182-
$ id username
183-
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
180+
id your_user
181+
```
182+
183+
Example output:
184+
185+
```text
186+
uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)
184187
```
185188

186189
## Docker Mods
@@ -191,12 +194,29 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
191194

192195
## Support Info
193196

194-
* Shell access whilst the container is running: `docker exec -it sqlitebrowser /bin/bash`
195-
* To monitor the logs of the container in realtime: `docker logs -f sqlitebrowser`
196-
* container version number
197-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' sqlitebrowser`
198-
* image version number
199-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/sqlitebrowser:latest`
197+
* Shell access whilst the container is running:
198+
199+
```bash
200+
docker exec -it sqlitebrowser /bin/bash
201+
```
202+
203+
* To monitor the logs of the container in realtime:
204+
205+
```bash
206+
docker logs -f sqlitebrowser
207+
```
208+
209+
* Container version number:
210+
211+
```bash
212+
docker inspect -f '{{ index .Config.Labels "build_version" }}' sqlitebrowser
213+
```
214+
215+
* Image version number:
216+
217+
```bash
218+
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/sqlitebrowser:latest
219+
```
200220

201221
## Updating Info
202222

@@ -206,38 +226,83 @@ Below are the instructions for updating containers:
206226

207227
### Via Docker Compose
208228

209-
* Update all images: `docker-compose pull`
210-
* or update a single image: `docker-compose pull sqlitebrowser`
211-
* Let compose update all containers as necessary: `docker-compose up -d`
212-
* or update a single container: `docker-compose up -d sqlitebrowser`
213-
* You can also remove the old dangling images: `docker image prune`
229+
* Update images:
230+
* All images:
231+
232+
```bash
233+
docker-compose pull
234+
```
235+
236+
* Single image:
237+
238+
```bash
239+
docker-compose pull sqlitebrowser
240+
```
241+
242+
* Update containers:
243+
* All containers:
244+
245+
```bash
246+
docker-compose up -d
247+
```
248+
249+
* Single container:
250+
251+
```bash
252+
docker-compose up -d sqlitebrowser
253+
```
254+
255+
* You can also remove the old dangling images:
256+
257+
```bash
258+
docker image prune
259+
```
214260

215261
### Via Docker Run
216262

217-
* Update the image: `docker pull lscr.io/linuxserver/sqlitebrowser:latest`
218-
* Stop the running container: `docker stop sqlitebrowser`
219-
* Delete the container: `docker rm sqlitebrowser`
263+
* Update the image:
264+
265+
```bash
266+
docker pull lscr.io/linuxserver/sqlitebrowser:latest
267+
```
268+
269+
* Stop the running container:
270+
271+
```bash
272+
docker stop sqlitebrowser
273+
```
274+
275+
* Delete the container:
276+
277+
```bash
278+
docker rm sqlitebrowser
279+
```
280+
220281
* 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)
221-
* You can also remove the old dangling images: `docker image prune`
282+
* You can also remove the old dangling images:
283+
284+
```bash
285+
docker image prune
286+
```
222287

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

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

227-
```bash
228-
docker run --rm \
229-
-v /var/run/docker.sock:/var/run/docker.sock \
230-
containrrr/watchtower \
231-
--run-once sqlitebrowser
232-
```
292+
```bash
293+
docker run --rm \
294+
-v /var/run/docker.sock:/var/run/docker.sock \
295+
containrrr/watchtower \
296+
--run-once sqlitebrowser
297+
```
233298

234299
* You can also remove the old dangling images: `docker image prune`
235300

236-
**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).
301+
**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).
237302

238303
### Image Update Notifications - Diun (Docker Image Update Notifier)
239304

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

242307
## Building locally
243308

0 commit comments

Comments
 (0)