Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love how there's a special case behavior for the hardcoded process name "docker." Just incredible: https://github.com/jkfran/killport/blob/main/src/linux.rs#L9...

But seriously kids, take the time to learn Unix tools so you can save yourself from needing to write hundreds of lines of Rust when one shell command will do the same thing.



Well yeah, because blindly killing the process that's listening on the port will do the wrong thing for Docker and you can't predict without asking Docker what container/process is the one that owns the port.


Only because Docker is broken. No other process manager would be confused by that.

Maybe we should patch kill itself? It wouldn't surprise me one bit if that pull request exists.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: