To access the database via the root account execute the following on the server:
# Assuming the container name is postgres docker exec -it postgres psql -U postgres