首先停止 docker 服务
修改 /hostconfig.json
vi /var/lib/docker/containers/[hash_of_the_container]/hostconfig.json
找到 PortBindings 按需修改
修改 config.v2.json
vi /var/lib/docker/containers/[hash_of_the_container]/config.v2.json
找到 ExposedPorts 按需修改
重启 docker 和容器
转载请注明原文地址:https://blackberry.8miu.com/read-27069.html