- 博客(1)
- 收藏
- 关注
原创 docker修改容器映射port
1. docker stop container_id2. systemctl stop docker3. 修改hostconfig.json和config.v2.json文件中HostPort的端口号,这两个文件都在下面的路径中:/var/lib/docker/containers/[hash_of_the_container]/,其中hash_of_the_container可以通过命令: docker inspect container_id |grep Id获得4. systemctl.
2020-07-02 16:05:22 1520
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人