Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

make start not working due to "Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use" #12

@MayureshGharat

Description

@MayureshGharat

I see an error:

=> CACHED [plaidinc/pattern-ngrok:1.0.7 4/6] RUN ngrok --version                                                                              0.0s
 => CACHED [plaidinc/pattern-ngrok:1.0.7 5/6] COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/                                                0.0s
 => CACHED [plaidinc/pattern-ngrok:1.0.7 6/6] COPY entrypoint.sh /                                                                             0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 1/2
 ⠿ Container pattern-af-tutorial-db-1      Running                                                                                             0.0s
 ⠋ Container pattern-af-tutorial-server-1  Starting                                                                                            0.0s
Error response from daemon: Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use
make: *** [start] Error 1

When I checked which process is using this port:

☁  pattern-af-tutorial [main] ⚡  sudo lsof -i -P -n | grep 5000
ControlCe 34884 mayuresh   21u  IPv4 0x9cd1...      0t0    TCP *:5000 (LISTEN)
ControlCe 34884 mayuresh   22u  IPv6 0x9c...      0t0    TCP *:5000 (LISTEN)
☁  pattern-af-tutorial [main] ⚡  ps aux | grep ControlCe
mayuresh   34918   0.0  0.0 408645776   1776 s001  S+    1:59PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox ControlCe
mayuresh   34884   0.0  0.3 409957152  52384   ??  S     1:58PM   0:00.47 /System/Library/CoreServices/ControlCenter.app/Contents/MacOS/ControlCenter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions