Liangxu Linux
Mar 19, 2023 · Operations
How to Add or Modify Docker Container Port Mappings After Creation
This guide explains step‑by‑step how to add, change, or remove port mappings for Docker containers by stopping the container, editing hostconfig.json (and optionally config.v2.json), and restarting the container, with commands for both Linux and Docker Desktop for Mac.
Container ConfigurationDevOpsDocker
0 likes · 6 min read
