[strapi/base:14 Docker] EADDRNOTAVAIL: address not available <LAN IP>:1337

System Information
  • Strapi Version: 3.6.6
  • Operating System: Ubuntu
  • Database: MongoDB Atlas
  • Node Version: 14.15.7 (comes from strapi/base:14)
  • Yarn Version: 1.22.5 (comes from strapi/base:14)

Hi, I run a Strapi app using docker. The base image is strapi/base:14. I built my Strapi app container image with Dockerfile :

It is built after I executed docker build -t <IMAGE_NAME>:latest .. I checked that the container image was successfully built and existed using docker images command (it was listed).

It also runs normally without any problems if I use yarn (not Docker). However, I tried to run it with docker and encountered an error saying Error: listen EADDRNOTAVAIL: address not available 192.168.1.9:1337 :

I already check my LAN IP and it was 192.168.1.9 :

Any help is appreciated…