Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hassanbahati/docker-pruner-action
A GitHub Action that automatically prunes unused Docker resources and cleans up old containers. This action removes unused containers, networks, images, and volumes, helping you maintain a clean and efficient Docker environment.
https://github.com/hassanbahati/docker-pruner-action
Last synced: 26 days ago
JSON representation
A GitHub Action that automatically prunes unused Docker resources and cleans up old containers. This action removes unused containers, networks, images, and volumes, helping you maintain a clean and efficient Docker environment.
- Host: GitHub
- URL: https://github.com/hassanbahati/docker-pruner-action
- Owner: HassanBahati
- License: mit
- Created: 2024-10-14T07:10:16.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T23:04:55.000Z (3 months ago)
- Last Synced: 2024-10-28T09:12:27.608Z (2 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Prunner Action
GitHub Action that automatically prunes unused Docker containers, networks, images, and volumes, and stops/removes old Docker containers.
## Inputs
- `container-name`: **Required**. The name of the Docker container to stop and remove.
- `prune`: Optional. Set to true to prune Docker system. Default is `true`.## Example Workflow
```yaml
name: Docker Maintenanceon:
push:
branches:
- mainjobs:
docker-maintenance:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3- name: Run Docker Prunner Action
uses: HassanBahati/docker-prunner-action@v1
with:
container-name: app-container
prune: true
```## License
This project is licensed under the [MIT License](LICENSE).