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
I'd like to start the discussion on supporting Docker compatible events with nerdctl events command. The events stream returned by nerdctl is significantly different from docker events. Example, for a container start event:
Some of the events are not reported (eg: networking and volume related events) because they are not integrated with containerd. This breaks certain tools that rely on event notifications.
Describe the solution you'd like
I'd like to have a docker compatible option, or have it be the default mode:
The events command in nerdctl simply reports events emitted by containerd. However, I think as a CLI, nerdctl should have the ability to report its own events for features such as network and volume management. Additionally, having its own set of events would make it easier for nerdctl to output a Docker compatible events stream.
The text was updated successfully, but these errors were encountered:
I have an approach in mind that I'd like to review with the community:
The CLI will publish all Docker compatible events to containerd with "dockercompat" topic prefix, eg: /dockercompat/container/start. Allows us to easily filter "dockercompat" and "native" events. Looking at the Docker API spec, there are certain events that cannot be published during CLI actions:
containers: destory, die, exec_die
networks: disconnect
These events are reported when a container process stops and exits. I think using an OCI-hook to publish them would be suitable here.
Let me know if you have suggestions. I'm happy to take this issue. Thanks!
What is the problem you're trying to solve
I'd like to start the discussion on supporting Docker compatible events with
nerdctl events
command. The events stream returned by nerdctl is significantly different fromdocker events
. Example, for acontainer start
event:Some of the events are not reported (eg: networking and volume related events) because they are not integrated with containerd. This breaks certain tools that rely on event notifications.
Describe the solution you'd like
I'd like to have a docker compatible option, or have it be the default mode:
Additional context
The events command in nerdctl simply reports events emitted by containerd. However, I think as a CLI, nerdctl should have the ability to report its own events for features such as network and volume management. Additionally, having its own set of events would make it easier for nerdctl to output a Docker compatible events stream.
The text was updated successfully, but these errors were encountered: