[GH-ISSUE #427] Docker run instructions are outdated for current docker updates #267

Closed
opened 2026-02-25 23:33:49 +03:00 by kerem · 1 comment
Owner

Originally created by @wgetgoose on GitHub (May 12, 2022).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/427

Hello,

The docker instructions in the "Usage" category of the wiki are outdated, as the $(pwd) argument assigns an incorrect volume mapping.

The solution that worked for me with persistent storage is to change
docker run -d --rm --name shiori -p 8080:8080 -v $(pwd):/srv/shiori radhifadlillah/shiori

to

docker run --rm --name shiori -p 8080:8080 -v /home/ubuntu/shiori-storage:/shiori radhifadlillah/shiori

This assigns the working directory of the docker container to a folder on the host machine in /home/ubuntu/shiori-storage. /srv did not seem to work for me.

Originally created by @wgetgoose on GitHub (May 12, 2022). Original GitHub issue: https://github.com/go-shiori/shiori/issues/427 Hello, The docker instructions in the "Usage" category of the wiki are outdated, as the `$(pwd)` argument assigns an incorrect volume mapping. The solution that worked for me with persistent storage is to change `docker run -d --rm --name shiori -p 8080:8080 -v $(pwd):/srv/shiori radhifadlillah/shiori` to `docker run --rm --name shiori -p 8080:8080 -v /home/ubuntu/shiori-storage:/shiori radhifadlillah/shiori` This assigns the working directory of the docker container to a folder on the host machine in /home/ubuntu/shiori-storage. /srv did not seem to work for me.
kerem 2026-02-25 23:33:49 +03:00
Author
Owner

@fmartingr commented on GitHub (May 26, 2022):

Hey @wgetgoose, thanks for pointing this out!

I've migrated the documentation to the repository (#394) and fixed those old image references.

Regarding the $(pwd): That should use your current working directory as volume mount and should work properly, but it's just an example and you have to adapt it accordingly (as you just did).

The /srv prefix for the path is outdated as well (and I'm going to fix that right away!). You can change that directory to whatever you want with the SHIORI_DIR environment variable.

<!-- gh-comment-id:1138938457 --> @fmartingr commented on GitHub (May 26, 2022): Hey @wgetgoose, thanks for pointing this out! I've migrated the documentation to the repository (#394) and fixed those old image references. Regarding the `$(pwd)`: That should use your current working directory as volume mount and should work properly, but it's just an example and you have to adapt it accordingly (as you just did). The `/srv` prefix for the path is outdated as well (and I'm going to fix that right away!). You can change that directory to whatever you want with the `SHIORI_DIR` environment variable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#267
No description provided.