Run docker with the python:3.12.8
image in an interactive mode, use the entrypoint bash
.
What's the version of pip
in the image?
$ docker run -it --entrypoint bash python:3.12.8
root@efa3e3150bc7:/# pip --version
pip 24.3.1 from /usr/local/lib/python3.12/site-packages/pip (python 3.12)
Given the following docker-compose.yaml
, what is the hostname
and port
that pgadmin should use to connect to the postgres database?
db
: This is the service name of the Postgres container in the docker-compose.yaml
file, used as the hostname for communication between containers.5432
: This is the internal port of the Postgres container that other services in the Docker network that pgAdming should use.Answers: