其他分享
首页 > 其他分享> > Docker readme

Docker readme

作者:互联网

windows下修改端口映射

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

标签:container,配置文件,id,readme,Docker,desktop,data,docker
来源: https://www.cnblogs.com/wendelhuang/p/16061861.html