npm run docker:run Error: listen EADDRINUSE: address already in use 127.0.0.1:3000 #8416
Unanswered
bostjanpisler
asked this question in
LB3 Migration
Replies: 1 comment 2 replies
-
@frbuceta would you maybe know how to solve this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When trying to run tests of lb3 app mounted inside lb4 using provided Dockerfile I get this error:
Error: listen EADDRINUSE: address already in use 127.0.0.1:3000 at Server.setupListenHandle [as _listen2] (node:net:1330:16) at listenInCluster (node:net:1378:12) at doListen (node:net:1516:7) at processTicksAndRejections (node:internal/process/task_queues:84:21) }
Locally tests run normally.
How to reproduce:
lb4 example lb3-application
Add Dockerfile
Run tests using docker
docker build -f Dockerfile -t lb3-application:test . && docker run -p 3000:3000 --rm -it lb3-application:test npm run test
Beta Was this translation helpful? Give feedback.
All reactions