CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
32e99cf9ca64 postgres "docker-entrypoint.s…" 5 days ago Up 8 minutes 0.0.0.0:5432->5432/tcp postgres
But when I try to connect on localhost, I`m getting a connection refused. I saw that the boot2docker image is able to be managed but there is an option only for Virtualbox. I have look at this tutorial.
How can I get boot2docker IP?
Hello everyone,
After I start a container with
docker run -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=admin -e POSTGRES_USER=admin -e POSTGRES_DB=postgres -d postgres
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 32e99cf9ca64 postgres "docker-entrypoint.s…" 5 days ago Up 8 minutes 0.0.0.0:5432->5432/tcp postgres
But when I try to connect on localhost, I`m getting a connection refused. I saw that the boot2docker image is able to be managed but there is an option only for Virtualbox. I have look at this tutorial. How can I get boot2docker IP?