You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nerdctl stop should release rootless ports (OCI poststop event should be called on nerdctl stop) #458
changed the title [-]`nerdctl stop` should release rootless ports[/-][+]`nerdctl stop` should release rootless ports (OCI `poststop` event should be called on `nerdctl stop`)[/+]on Oct 22, 2021
A workaround for this issue when using nerdctl for development, if removing the container is okay in your usecase than using nerdctl run --rm will remove all traces of the container after running including the port.
@AkihiroSuda is this still something you think we should do?
As @zhan9san pointed out, the spec for postStop states this is only triggered when about to destroy the container (not merely stopping it), and there is nothing in oci hooks for merely "stopping container".
This is not an endorsement of oci-hooks btw - what I am asking is whether we want the feature (eg: release port on stop), regardless of implementation.
Activity
[-]`nerdctl stop` should release rootless ports[/-][+]`nerdctl stop` should release rootless ports (OCI `poststop` event should be called on `nerdctl stop`)[/+]junnplus commentedon Dec 31, 2021
maruno commentedon Oct 28, 2022
A workaround for this issue when using nerdctl for development, if removing the container is okay in your usecase than using
nerdctl run --rmwill remove all traces of the container after running including the port.zhan9san commentedon Nov 28, 2022
It's against the definition of poststop.
IMHO, the runtime-spec is for k8s pod, and there is no
stopaction in k8s pod.apostasie commentedon Aug 25, 2024
@AkihiroSuda is this still something you think we should do?
As @zhan9san pointed out, the spec for postStop states this is only triggered when about to destroy the container (not merely stopping it), and there is nothing in oci hooks for merely "stopping container".
This is not an endorsement of oci-hooks btw - what I am asking is whether we want the feature (eg: release port on stop), regardless of implementation.
msg="conflict with ID 7") #1868 as a duplicate of this issue