How do I assign a port mapping to an existing Docker container?
Asked 07 September, 2021
Viewed 3.1K times
  • 63
Votes

I'm not sure if I've misunderstood something here, but it seems like it's only possible to set port mappings by creating a new container from an image. Is there a way to assign a port mapping to an existing Docker container?

15 Answer