mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
[Raspberry] Setting host-port with "docker-run -p" does not work (defaults to 80) #1930
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Timeeee on GitHub.
I'm using the raspberry-image.
Using the docker-run command from the wiki doesn't set the containers host port correctly.
running
adds the container with exposed port 8080, but the host port is set to 80. This leads to issues as I have another service running with host-port 80.
I didn't try using a fixed IP with port, as this is not possible in my environment.
@Timeeee commented on GitHub:
I assumed there is a way to change the host port itself (not the forwarding) with
-pas well. So there is no way to change the host port, which is in this case fixed to80, right?edit: I will play around some more with the settings, looks like I might have messed up something. Will give feedback once I did that. Sorry for creating the issue in the first place @mprasil !
Fantastic work btw :)
@Timeeee commented on GitHub:
Thank you very much, I finally got it running!
@mprasil commented on GitHub:
Well you were asking about the host side port as that's where the conflict is. I assume that
bitwarden_rswill never conflict with the default port80inside the container as it's the only thing running inside the container.If for some reason you really want to change the port where
bitwarden_rslistens inside the container, you can do that by setting theROCKET_PORTvariable. But you'd have adapt the port forward as well:-e ROCKET_PORT=2345 -p 8080:2345@mprasil commented on GitHub:
-psets the port forwarding. So if you want to expose port80in the container as8080on the host you need to do-p 8080:80.