I am trying to postgres dockers by following the official postgres post at https://registry.hub.docker.com/_/postgres/ .
The following commands are launched in the document and activated:
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres docker run -it --link some-postgres:postgres --rm postgres sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'
So my question is: where does $ POSTGRES_PORT_5432_TCP_PORT and $ POSTGRES_PORT_5432_TCP_ADDR come from?
source share