Docker Community Forums

Share and learn in the Docker community.

Cannot create SQL Server 2019 container


I am trying to set up a SQL Server 2019 docker instance on my computer but am getting the following error. Please let me know how what is causing the problem. I have also tried this command after I disabled my antivirus

PS F:\Source Control\Scripts> docker run --name SQL1925 -p 50000:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Password1 -v D:\SQLBackups:/sql -d f2fbbf6d40f089515e9b63cb1fcf071168adeb9c0ceecf78423feb3328c2f320 C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: driver failed programming external connectivity on endpoint SQL1925 (9d2f2369ffe68da5be87791013caddc1e9e722d7b028188761fc2540864bdb1f): Error starting userland proxy: mkdir /port/tcp: input/output error.

Any help would be appreciated


Hi Sandman153

Even if the available port numbers are 2^16-1 (that is 0 to 65535) you should only use up to 49151, as from 49152 up to 65535 are reserved for Ephemeral ports

Port 50000 is in the Ephemeral port range. Try using a lower port number, or let docker assign a port to you.

On a Linux/Mac you can run the command sysctl net.inet.ip.portrange.first net.inet.ip.portrange.last and the the reserved port range.

1 Like