Skip to content

Commit

Permalink
docs: fixed outdated volume path reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed May 26, 2022
1 parent 0bf1a48 commit f72f050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Frequently-Asked-Question.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down

0 comments on commit f72f050

Please sign in to comment.