Skip to main content

bind

Function bind 

Source
pub fn bind(path: &Path) -> Result<UnixListener>
Expand description

Bind the socket, replacing a stale one left by a crashed container.

A leftover socket file is the normal case after a container restart (the emptyDir survives, the process does not), and bind fails with EADDRINUSE on it. Refusing to start on that would make the door work exactly once per pod.