比如已创建的容器,目前映射的端口是80:80, 如果想修改为 80:80、81:81
除了修改 /var/lib/docker/containers/[容器id]/hostconfig.json
重启容器的方式外有没有更优雅的方案?
wsl 对应的目录是:\\wsl.localhost\docker-desktop-data\version-pack-data\community\docker\containers\[容器id]\ostconfig.json
\\wsl.localhost\docker-desktop-data\version-pack-data\community\docker\containers\[容器id]\config.v2.json