I have a docker container, which serves some http traffic on 172.17.0.87:9000, which is internal to that specific container. How do I expose this traffic to the outside world, so I could hit http://example.com:9000 ?
Asked
Active
Viewed 366 times
1
-
possible duplicate of [Exposing a port on a live Docker container](http://stackoverflow.com/questions/19897743/exposing-a-port-on-a-live-docker-container) – Seth Feb 05 '15 at 03:50
1 Answers
0
As pointed out by Seth: docker run -i -t me/mycontainer -p 9000:9000 will expose the traffic

Eugene Goldberg
- 14,286
- 20
- 94
- 167