skip to Main Content

Redis – Docker: How to fix "could not translate host name "postgres" to address" when connecting from one container to another using container name?

I start 3 container: docker run -d --rm --name redis --publish 6379:6379 redis docker run -d --rm --name postgres --publish 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_DB=hi postgres:9.6 docker run -d --rm --name web --publish 8000:8000 python:3.6.8-stretch sleep 1000 Doing docker ps…

VIEW QUESTION
Back To Top
Search