Skip to content

Seamless upgrade procedure #4230

Closed Answered by cyphar
arun2arunraj asked this question in Q&A
Discussion options

You must be logged in to vote

(When used with Docker/containerd/cri-o/podman) runc does not have any long-running process, so replacing the binary has no impact on existing containers.

I wouldn't do option 2 because it will remove a symlink that other services on the system might depend on. Just replace the binary.


In addition, on Linux open files (including executables mapped for running processes) are kept around even after being unlinked until they are no longer used (and executable data is mapped using MAP_PRIVATE so a running process will never see a change in its mapped executable memory even if the underlying data changes), so even for long-running daemons replacing the running binary shouldn't matter (unless …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cyphar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants