desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

Redis not connecting from backend.

Open MB-teamdevops opened this issue 3 years ago • 2 comments
trafficstars

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

Without docker desktop it is working fine it connected to backend passing this in compose file environment:REDIS_URL: redis.

Actual behavior

Got this error when docker desktop running Error: getaddrinfo ENOTFOUND redis     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {   errno: -3008,   code: 'ENOTFOUND',   syscall: 'getaddrinfo',   hostname: 'redis' }

Information

  • Linux distro: 20.04 LTS
  • Distro version: Ubuntu
  • Docker Desktop Version: 4.9.1

Steps to reproduce the behavior

  1. Using node.js application on node 16
  2. There is 2 container one for redis and other for backend.
  3. without docker desktop it is working fine.
  4. Using with docker compose version: "3.9"

MB-teamdevops avatar Jun 23 '22 13:06 MB-teamdevops

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott avatar Mar 01 '23 01:03 docker-robott

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] avatar Jun 23 '23 01:06 docker-robot[bot]