Set port forwarding to existing Docker container

Post Reply
romko
New here
Posts: 2
Joined: Wed Sep 14, 2016 3:54 am

Set port forwarding to existing Docker container

Post by romko »

hi,

I have problem with my docker containter. I want to setup port forwarding from container to host - the port must be fixed.

I changed value in qnap.json config i I see the value of port forwarding in container settings. But after I started the container the port of the host is changing to random one (allways port numer rises +1)

Maybe I should clear the cache of Container Station?
You do not have the required permissions to view the files attached to this post.
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: Set port forwarding to existing Docker container

Post by yanuk »

I had a similar problem as well.
In order to fix the ports, i had to export the container, then reimport it again.
During the import phase, you can define the ports and it will be fixed.
TS451
TS453
TVS-682
pczekalski
Starting out
Posts: 18
Joined: Sun May 31, 2015 2:18 am

Re: Set port forwarding to existing Docker container

Post by pczekalski »

Thanks for the hint!
Works!

Regards,

P.
-------------------
TVS-473 (3x6TB Seagate IronWolf) (24GB RAM)
Post Reply

Return to “Container Station”