Docker readme
作者:互联网
windows下修改端口映射
- 查询container id
docker ps -a --no-trunc
- 修改配置文件
# 修改配置文件, 增加"PortBindings":{"8080/tcp":[{"HostIp":"","HostPort":"8080"}]}
\\wsl$\docker-desktop-data\version-pack-data\community\docker\containers\{container id}\hostconfig.json
## 修改配置文件, 增加"ExposedPorts":{"8080/tcp":{}}
\\wsl$\docker-desktop-data\version-pack-data\community\docker\containers\{container id}\config.v2.json
- 重启docker desktop
标签:container,配置文件,id,readme,Docker,desktop,data,docker 来源: https://www.cnblogs.com/wendelhuang/p/16061861.html