Skip to content

Port 5000 already binded on modern Mac operating systems #3

Description

@T-0n-1

Issue:
Use of port 5000 on modern Mac operating systems creates an error because port is already binded by MacOS system processes.

Reproduce (on modern MacOS):
docker run -p 5000:5000 flask_blog

Should start app normally.

Gives error message 'docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 127.0.0.1:0: listen tcp 0.0.0.0:5000: bind: address already in use'.

Environment:
MacBook Pro - Apple M3 Max
memory 36GB
macOS Sequoia 15.6
Python 3.13.5

Add for instructions:
For modern Mac operating systems:
for running docker: 'docker run -p 5100:5000 flask_blog' and then url 'localhost:5100' or '127.0.0.1:5100'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions