jpetazzo / pipework

Software-Defined Networking tools for LXC (LinuX Containers)
Apache License 2.0
4.21k stars 727 forks source link

Can't get IP from DHCP sever #226

Closed chihkaiyu closed 5 months ago

chihkaiyu commented 6 years ago

Hi,

I'm trying to assign IP (which is obtained from DHCP server) to a docker container (actually a Gitlab container). I used the command sudo pipework/pipework p13p1 gitlab-instance udhcpc-f 9e:01:b2:2b:08:62. But it keeps showing the message:

udhcpc (v1.21.1) started                                                                         
SIOCSIFFLAGS: Device or resource busy                                                                           
Sending discover...                                                                                          
udhcpc: sendto: Network is down                                                            
Read error: Network is down, reopening socket                          
Sending discover...                                                    
udhcpc: sendto: Network is down                                                                                                                                                                         
Read error: Network is down, reopening socket                                                                                                                                                                    
Sending discover...                                                                                                                                                                                               
udhcpc: sendto: Network is down                                                                                                                                                                                
Read error: Network is down, reopening socket                                                                                                                                                                       
/etc/udhcpc/default.script: Lease failed:                                                                                                                                                                      
Read error: Network is down, reopening socket                       
Read error: Network is down, reopening socket                                                                                                                                                           
Read error: Network is down, reopening socket                                                                                                                                                                    
Read error: Network is down, reopening socket                                                                                                                                                                     
Read error: Network is down, reopening socket                                                                                                                                                                  
Read error: Network is down, reopening socket                                                                                                                                                                       
Read error: Network is down, reopening socket                                                                                                                                                                  
Sending discover...                                                                                                  
udhcpc: sendto: Network is down
Read error: Network is down, reopening socket
Sending discover...
udhcpc: sendto: Network is down
Read error: Network is down, reopening socket
Sending discover...
udhcpc: sendto: Network is down
Read error: Network is down, reopening socket

This is probably related to https://github.com/jpetazzo/pipework/issues/163 But I still can't figure out how this works. Any one encounter the same situation?

Thank you!

jpetazzo commented 5 months ago

Closing old issues.