Describe the bug
Port mapping not working on specific ip address.
Dont know if this is sytem specific but I am on MacIs 14.1, on a silicon M2.
To Reproduce
Create a loopback IP (0ther than 127.0.01)
sudo ifconfig lo0 alias 127.6.6.6
Start a service and bind it on above IP.
docker run -p 127.6.6.6:8666:80 -d nginx
Access the port
wget http://127.6.6.6:8666
Expected behavior
You should be able to access the nginx welcome page on http://27.6.6.6:8666 ... But you get
wget http://127.6.6.6:8666
--2023-11-06 17:20:20-- http://127.6.6.6:8666/
Connecting to 127.6.6.6:8666... failed: Connection refused.
Note:
-p 127.6.6.6:8666:80 -> not accessible anywhere (But it does not fail to start the service)
-p 0.0.0.0:8666:80 -> work as expected, accessible on both 127.0.0.1 and 127.6.6.6, and any local network IPs
-p 8666:80 -> work as expected, accessible on both 127.0.0.1 and 127.6.6.6 and 127.6.6.6, and any local network IPs
-p 127.0.01:8666:80 -> work as expected, accessible only on 127.0.0.1
Where 192.168.1.66 is local network ip addess.
-p 192.168.1.66:8666:80 -> crash with error : docker: Error response from daemon: driver failed programming external connectivity on endpoint gracious_shaw (772ab64b5ce46977fa57bd4fbecc90aa858597b152f78f922b45417719ce5038): Error starting userland proxy: listen tcp4 192.168.1.66:8666: bind: cannot assign requested address.
ERRO[0000] error waiting for container:
All of this works fine on Docker Desktop...
Diagnostic report (required)
OrbStack info:
Version: 1.0.1
Commit: 0d4cdcf185489f992cf8e3187884f11f4feab1aa (v1.0.1)
System info:
macOS: 14.1 (23B74)
CPU: arm64, 12 cores
CPU model: Apple M2 Max
Model: Mac14,6
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-11-06T22-37-00.137478Z.zip
Screenshots and additional context (optional)
No response
Describe the bug
Port mapping not working on specific ip address.
Dont know if this is sytem specific but I am on MacIs 14.1, on a silicon M2.
To Reproduce
Create a loopback IP (0ther than 127.0.01)
sudo ifconfig lo0 alias 127.6.6.6
Start a service and bind it on above IP.
docker run -p 127.6.6.6:8666:80 -d nginx
Access the port
wget http://127.6.6.6:8666
Expected behavior
You should be able to access the nginx welcome page on http://27.6.6.6:8666 ... But you get
wget http://127.6.6.6:8666
--2023-11-06 17:20:20-- http://127.6.6.6:8666/
Connecting to 127.6.6.6:8666... failed: Connection refused.
Note:
-p 127.6.6.6:8666:80 -> not accessible anywhere (But it does not fail to start the service)
-p 0.0.0.0:8666:80 -> work as expected, accessible on both 127.0.0.1 and 127.6.6.6, and any local network IPs
-p 8666:80 -> work as expected, accessible on both 127.0.0.1 and 127.6.6.6 and 127.6.6.6, and any local network IPs
-p 127.0.01:8666:80 -> work as expected, accessible only on 127.0.0.1
Where 192.168.1.66 is local network ip addess.
-p 192.168.1.66:8666:80 -> crash with error : docker: Error response from daemon: driver failed programming external connectivity on endpoint gracious_shaw (772ab64b5ce46977fa57bd4fbecc90aa858597b152f78f922b45417719ce5038): Error starting userland proxy: listen tcp4 192.168.1.66:8666: bind: cannot assign requested address.
ERRO[0000] error waiting for container:
All of this works fine on Docker Desktop...
Diagnostic report (required)
OrbStack info:
Version: 1.0.1
Commit: 0d4cdcf185489f992cf8e3187884f11f4feab1aa (v1.0.1)
System info:
macOS: 14.1 (23B74)
CPU: arm64, 12 cores
CPU model: Apple M2 Max
Model: Mac14,6
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-11-06T22-37-00.137478Z.zip
Screenshots and additional context (optional)
No response