docs: fixed outdated volume path reference

This commit is contained in:
Felipe Martin 2022-05-26 21:35:29 +02:00
parent 0bf1a4875c
commit f72f050835
No known key found for this signature in database
GPG key ID: 716BC147715E716F
2 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ There are several methods to run `shiori` on start up, however the most recommen
--rm \
--name shiori-1 \
-p 8080:8080 \
-v /srv/machines/shiori:/srv/shiori \
-v /srv/machines/shiori:/shiori \
ghcr.io/go-shiori/shiori
ExecStop=/usr/bin/docker stop -t 2 shiori-1

View file

@ -19,14 +19,14 @@ Before using `shiori`, make sure it has been installed on your system. By defaul
After building or pulling the image, you will be able to start a container from it. To preserve the data, you need to bind the directory for storing database, thumbnails and archive. In this example we're binding the data directory to our current working directory :
```
docker run -d --rm --name shiori -p 8080:8080 -v $(pwd):/srv/shiori ghcr.io/go-shiori/shiori
docker run -d --rm --name shiori -p 8080:8080 -v $(pwd):/shiori ghcr.io/go-shiori/shiori
```
The above command will :
- Creates a new container from image `ghcr.io/go-shiori/shiori`.
- Set the container name to `shiori` (option `--name`).
- Bind the host current working directory to `/srv/shiori` inside container (option `-v`).
- Bind the host current working directory to `/shiori` inside container (option `-v`).
- Expose port `8080` in container to port `8080` in host machine (option `-p`).
- Run the container in background (option `-d`).
- Automatically remove the container when it stopped (option `--rm`).