I have host with PostgreSQL and Docker container. PostgreSQL work on 5432 port. Docker container must connect to database. How to connect container with database through Dockerfile or run command? EXPOSE 5432
and docker run -p 5432:5432 ...
did not help.
相关问题
- Docker task in Azure devops won't accept "$(pw
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
From the documentation page:
EXPOSE
or-p
flag work the other way around e.g. publish container ports to host which you don't want here.