1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00

Fixed port publishing

Signed-off-by: French Ben <frenchben@docker.com>
This commit is contained in:
French Ben
2016-07-20 20:21:58 -07:00
parent 6e4aa098fb
commit 806eb3b00c

View File

@@ -157,7 +157,10 @@ var DockerUtil = {
}
if (!containerData.HostConfig || (containerData.HostConfig && !containerData.HostConfig.PortBindings)) {
containerData.PublishAllPorts = true;
if (!containerData.HostConfig) {
containerData.HostConfig = {};
}
containerData.HostConfig.PublishAllPorts = true;
}
if (image.Config.Cmd) {