[GH-ISSUE #318] modify the default port 8080 on Docker #232

Closed
opened 2026-02-25 23:33:45 +03:00 by kerem · 2 comments
Owner

Originally created by @yuis-ice on GitHub (Sep 17, 2021).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/318

Is it possible to modify the default port 8080 to other on the docker image?

I tried:

docker run --rm radhifadlillah/shiori serve -h
docker run --rm radhifadlillah/shiori serve --port 8081

But I get an error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "serve": executable file not found in $PATH: unknown.
Originally created by @yuis-ice on GitHub (Sep 17, 2021). Original GitHub issue: https://github.com/go-shiori/shiori/issues/318 Is it possible to modify the default port 8080 to other on the docker image? I tried: ``` docker run --rm radhifadlillah/shiori serve -h docker run --rm radhifadlillah/shiori serve --port 8081 ``` But I get an error: ``` docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "serve": executable file not found in $PATH: unknown. ```
Author
Owner

@JugglerMaster commented on GitHub (Feb 15, 2022):

It wasn't too hard to change this at runtime with docker run "name" -p 9090:8080 etc. That syntax might not be 100% correct as I used portainer to start this and just entered this into the gui.

<!-- gh-comment-id:1040558245 --> @JugglerMaster commented on GitHub (Feb 15, 2022): It wasn't too hard to change this at runtime with docker run "name" -p 9090:8080 etc. That syntax might not be 100% correct as I used portainer to start this and just entered this into the gui.
Author
Owner

@fmartingr commented on GitHub (Feb 15, 2022):

As @JugglerMaster comments, you can bind custom ports outside docker images with the port forward, but also #363 uses the shiori binary as entrypoint so now you can launch shiori with any arbitrary arguments you want.

Closing.

<!-- gh-comment-id:1040563773 --> @fmartingr commented on GitHub (Feb 15, 2022): As @JugglerMaster comments, you can bind custom ports outside docker images with the port forward, but also #363 uses the shiori binary as entrypoint so now you can launch shiori with any arbitrary arguments you want. Closing.
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#232
No description provided.