How to connect to a Docker container from another machine?

  Kiến thức lập trình

I’m running a postgreSQL database in a Docker container on one computer, and I want to connect to this database from another computer. Both computers are on the same network. How can I do this?

I tried connecting using the IP address of the first computer and the database port, but it didn’t work.

New contributor

isswmq is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT