I started a container instance using a postgres image. Whilst the container was running I connected to it using
docker exec -it postgres-13.1 bash