{"repo":"testcontainers/moby-ryuk","free":true,"listed":false,"github":"https://github.com/testcontainers/moby-ryuk","clone":"git clone https://github.com/testcontainers/moby-ryuk.git","description":"Schedule Moby/Docker containers cleanup after specific delay.","language":"Go","stars":240,"topics":["automation","docker","go","golang","hacktoberfest","testcontainers","testing"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Moby Ryuk This project helps you to remove containers, networks, volumes and images by given filter after specified delay. Building To build the binary only run: To build the Linux docker container as the latest tag: Usage To start it using the default settings: If you want to test local changes with the default settings: You can then simulate a connection from testcontainer container using: You can send additional session information for monitoring using: In the ryuk window you'll see containers/networks/volumes deleted after 10s Ryuk configuration The following environment variables can be configured to change the behaviour: Environment Variable Default Format Description ----------------------------- ------- ------- ------------ RYUK CONNECTION TIMEOUT 60s Duration The duration without receiving any connections which will trigger a shutdown RYUK PORT 8080 uint16 The port to listen on for connections RYUK RECONNECTION TIMEOUT 10s Duration The duration after the last connection closes which will trigger resource clean up and shutdown RYUK REQUEST TIMEOUT 10s Duration The timeout for any Docker requests RYUK REMOVE RETRIES 10 int The number of times to retry removing a resource RYUK RETRY OFFSET -1s Duration The offset added to the start time of the prune pass that is used as the minimum resource creation time. Any resource created after this calculated time will trigger a retry to ensure in use resources are not removed RYUK CHANGES RETRY INTERVAL 1s Duration The internal be","default_branch":null,"files":null,"tree":[],"storefront":"/r/testcontainers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/testcontainers/moby-ryuk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}