Closed serhiinikitenko closed 3 years ago
how did u resolve that I have exactly the same problem @serhiinikitenko
Hi, To bind IP port from host to docker container you need to use the next JSON:
{
"Image": "your-image",
"HostConfig": {
"PortBindings": {
"80/tcp": [ // port inside of docker container
{"HostPort": "8000"} // port on host machine
]
}
},
"ExposedPorts": {
"80/tcp": {} // port inside of docker container
}
}
thank you !!
Resolved