mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 12:31:02 +01:00
updated docker howto
This commit is contained in:
@@ -157,10 +157,15 @@ docker pull ghcr.io/tlinden/anydb:latest
|
|||||||
To execute anydb inside the image do something like this:
|
To execute anydb inside the image do something like this:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mkdir myads
|
mkdir mydb
|
||||||
docker run ghcr.io/tlinden/anydb:latest --help
|
docker run -ti -v mydb:/db -u `id -u $USER` -e HOME=/db ghcr.io/tlinden/anydb:latest set foo bar
|
||||||
|
docker run -ti -v mydb:/db -u `id -u $USER` -e HOME=/db ghcr.io/tlinden/anydb:latest list -o wide
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Here, we operate in a local directory `mydb`, which we'll use as HOME
|
||||||
|
inside the docker container. anydb will store its database in
|
||||||
|
`mydb/.config/anydb/default.db`.
|
||||||
|
|
||||||
A list of available images is [here](https://github.com/tlinden/anydb/pkgs/container/anydb/versions?filters%5Bversion_type%5D=tagged)
|
A list of available images is [here](https://github.com/tlinden/anydb/pkgs/container/anydb/versions?filters%5Bversion_type%5D=tagged)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user