首先停止 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 和容器
1595

被折叠的 条评论
为什么被折叠?



