I'm trying to start docker container with docker's Remote API. I could able to start the container but unable to expose and map the container's port to host port.
I need Remote API JSON for following ssh command
docker run -i -t --expose 80 -p 80:80 my_image_nodejs nodejs /var/www/server.js
Right now i'm using below JSON.
{
"Image": "f96f6e304cfcd630ee51af87baf30dfd42cf1f361da873a2f62ce6654d7a4c6b",
"Memory": 0,
"MemorySwap": 0,
"VolumesFrom": "",
"Cmd": [
"nodejs",
"/var/www/server.js",
"-D"
],
"PortBindings": {
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "80"
}
]
},
"ExposedPorts": {
"80/tcp": {}
}
}
Thanks in advance