Skip to content

Commit

Permalink
updated docker howto
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Dein committed Dec 20, 2024
1 parent 1119b06 commit 37ca653
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,15 @@ docker pull ghcr.io/tlinden/anydb:latest
To execute anydb inside the image do something like this:

```shell
mkdir myads
docker run ghcr.io/tlinden/anydb:latest --help
mkdir mydb
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)


Expand Down

0 comments on commit 37ca653

Please sign in to comment.