hantsy / hantsy/devops-sandbox

Ports are not available: listen tcp 0.0.0.0:1520: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
7
Forks
4
PR merge metrics
No merged PRs in 30d

Description

After succesful building the image I ran `docker run --name oracleExpress -p 1520:1521 -p 5500:5500 -e ORACLE_PWD=test -v c:\temp\oracle\oradata:/opt/oracle/oradata oracle/database:18.4.0-xe`

But I got an error `docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:1520: bind: An attempt was made to access a socket in a way forbidden by its access permissions.`
The port 1520 was not in use but it was a **reserved** port.
The fix is to just use a different port that's not in the reserved range. You can check this range with `netsh int ipv4 show excludedportrange protocol=tcp`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.