SteveW81 Posted March 28, 2020 Share Posted March 28, 2020 Hi, I have been running an OpenHAB docker container for a while, everything working great, but I had to add another Docker container that also needed to be Host and using the same ports. I switched the OpenHAB container to bridged so I could use the new container, but what I really want to do is remap the ports on OpenHAB. I have tried following some guides on port use, but it appears that the port numbers are hard-coded in OpenHAB, so trying to use the edit UI achieve nothing. Thanks in advance for any help. Steve Quote Link to comment
trurl Posted March 28, 2020 Share Posted March 28, 2020 Don't use this, but in general, container ports can't be changed. Instead you have to change the host port that container port is mapped to. Quote Link to comment
SteveW81 Posted March 29, 2020 Author Share Posted March 29, 2020 Thanks. I have got round this by setting some of the containers to custom network with a new IP address, no more conflicts, and I don't have to figure out how to map the ports when in host mode. Does anyone know how to do the --device command in a docker XML file as it now the only manual thing I need to do and it would be nice to get it to map my zwave stick automaticaly. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.