Skip to content

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.

License

Notifications You must be signed in to change notification settings

HassanBahati/docker-pruner-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

name: Docker Maintenance

on:
  push:
    branches:
      - main

jobs:
  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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages