To run a psql via docker e.g. user postgres assumes postgres to be the image name docker exec -it postgres psql -U postgres