bind: cannot assign requested address #1080
-
Description192.168.1.105 is my local private ip, but it's not able to assigned lima nerdctl run -d --name nginx -p 192.168.1.105:8809:80 nginx:alpine
FATA[0000] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error
during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time="2022-09-
30T09:47:43Z" level=fatal msg="listen tcp 192.168.1.105:8809: bind: cannot assign requested address" |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Is the address already in use? Does it work if you specify a different address? And did you use this address before for a container you have since then deleted? I've seen that ports have not been released properly when the container was destroyed. |
Beta Was this translation helpful? Give feedback.
-
Is this VMnet IP? |
Beta Was this translation helpful? Give feedback.
-
Hi, I've
The only issue is tested There is no typo sh-3.2$ ifconfig en0 | grep 192
inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
sh-3.2$ lima nerdctl run -d --name nginx -p 192.168.1.104:8809:80 nginx:alpine
FATA[0000] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time="2022-10-01T02:11:19Z" level=fatal msg="listen tcp 192.168.1.104:8809: bind: cannot assign requested address"
Failed to write to log, write /home/tadika.linux/.local/share/nerdctl/1935db59/containers/default/fc408b59e1b68118cd2ce871f85bac3002954beb7b54bd7b46fb889d9927507b/oci-hook.createRuntime.log: file already closed: unknown
sh-3.2$ sw_vers
ProductName: macOS
ProductVersion: 12.6
BuildVersion: 21G115
|
Beta Was this translation helpful? Give feedback.
-
Maybe you want to try enabling VMnet with the |
Beta Was this translation helpful? Give feedback.
192.168.1.104
seems the IP of the host, not the guest, so this is an expected behavior.Maybe you want to try enabling VMnet with the
bridged
mode so that the VM will get a "real" IP address in the 192.168.1.0/24 network: https://github.com/lima-vm/lima/blob/v0.12.0/docs/network.md