Find the Ports in Docker Image
Before writing any manifests, pull the images and inspect them to find the exposed ports:
docker pull dockersamples/examplevotingapp_vote:before
docker inspect dockersamples/examplevotingapp_vote:before | python3 -m json.tool | grep -A5 ExposedPorts"ExposedPorts": {
"80/tcp": {}
}docker inspect redis:latest | python3 -m json.tool | grep -A5 ExposedPorts"ExposedPorts": {
"6379/tcp": {}
}docker inspect postgres:9.4 | python3 -m json.tool | grep -A5 ExposedPorts"ExposedPorts": {
"5432/tcp": {}
}
(Visited 1 times, 1 visits today)

