Code Monkey home page Code Monkey logo

sa-docker-gc's Introduction

sa-docker-gc

Build Status

Installs shell batch to clean up docker images and containers on your docker server, see https://github.com/spotify/docker-gc

Usage example:

     - {
         role: "sa-docker-gc"
       }
vars:

my_docker_gc_exclude:
  - "adminer:latest"
  - "alpine:3.5"
  - "container-conductor-ubuntu-xenial:0.9.2"
  - "debian:jessie"
  - "mysql:5.7"
  - "nginx:1.12-alpine"
  - "postgres:9.4"
  - "rabbitmq:3.6.12-alpine"
  - "softasap/ubuntu:16.04"
  - "ubuntu:16.04"
  - "uifd/ui-for-docker:latest"

# /etc/docker-gc-exclude-containers

my_docker_gc_exclude_containers:
 - "docker_ui"
 - "ui-for-docker"


roles:

     - {
         role: "sa-docker-gc",
         docker_gc_exclude: "{{my_docker_gc_exclude}}",
         docker_gc_exclude_containers: "{{my_docker_gc_exclude_containers}}"
       }

Usage with ansible galaxy workflow

If you installed the sa-docker-gc role using the command

ansible-galaxy install softasap.sa-docker-gc

the role will be available in the folder library/sa-docker-gc

Please adjust the path accordingly.

     - {
         role: "softasap.sa-docker-gc"
       }

Copyright and license

Code is dual licensed under the [BSD 3 clause] (https://opensource.org/licenses/BSD-3-Clause) and the [MIT License] (http://opensource.org/licenses/MIT). Choose the one that suits you best.

Reach us:

Subscribe for roles updates at [FB] (https://www.facebook.com/SoftAsap/)

Join gitter discussion channel at Gitter

Discover other roles at http://www.softasap.com/roles/registry_generated.html

visit our blog at http://www.softasap.com/blog/archive.html

sa-docker-gc's People

Contributors

it-praktyk avatar voronenko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.