• 周六. 10 月 12th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

[Linux] restart the docker container bind in exited status: address already in use

King Wang

1 月 3, 2022
  • see docker Containers
docker -ps -a
  • restart docker Containers
docker restart Containers ID( Or container name )
  • Report errors : bind: address already in use
  1. View the process of port number listening , obtain pid,lsof Other uses of commands
    lsof -i: Port number
    or
    netstat -tunlp | grep Port number
    
  2. according to pid Kill the process ,-9 Parameter indicates strong deletion , The other parameters
    kill -9 process pid
    
  3. restart docker Mirror image
  • Check if a port is being monitored , Or what port a process listens on
    netstat -an | grep Port number
    netstat -nltp | grep Process name
    

发表回复