docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

feat: watch network connect / disconnect events

Open buchdag opened this issue 1 year ago • 4 comments

This PR make use of the new Docker API event format available on Docker API v1.22+ (the old event format is automatically translated to the new one by fsouza/go-dockerclient) and make docker-gen watch for network connect and disconnect events.

Close #190

Ping @outdooracorn

buchdag avatar May 14 '24 08:05 buchdag

Thanks for creating this PR :raised_hands: I use docker-gen as part of the nginx-proxy container. What would be the best way to test this PR? Build the binary locally and then docker cp it into the container?

outdooracorn avatar May 16 '24 11:05 outdooracorn

I've pushed a custom built nginx-proxy image for you to test: docker pull nginxproxy/nginx-proxy:network-event

buchdag avatar May 16 '24 11:05 buchdag

@outdooracorn any luck trying nginxproxy/nginx-proxy:network-event ? Let me know if you need any help.

buchdag avatar May 22 '24 20:05 buchdag

Ping @outdooracorn 👋

buchdag avatar Jul 18 '24 07:07 buchdag

I decided to make this configurable via a new -event-filter flag rather than changing the default.

buchdag avatar May 25 '25 20:05 buchdag