Reputation: 103
in My Container ID 634eb4c5d6ee
, This is my Ports : docker port 634eb4c5d6ee
222/tcp -> 0.0.0.0:222
8080/tcp -> 0.0.0.0:80
8443/tcp -> 0.0.0.0:443
i want Change 8080/tcp -> 0.0.0.0:80
to 8080/tcp -> 0.0.0.0:90
how can i do it on Docker ?
and Published port 80
to another Container ID 8e8caeca7a87
Upvotes: 1
Views: 835
Reputation: 1323065
Per issue 3285, this is not yet possible (to modify port mapping on a running container).
Even the 1.10+ docker update command does not yet update ports.
This is followed by issue 21282.
You have other options in this answer, like using iptables, or committing the live container, and relaunching it.
Upvotes: 1