Sha256: 0ed7700f6016bc7504a4431c203bf5d3f05d89bdfc58f8b7cbb4e6d6f46be876
Contents?: true
Size: 704 Bytes
Versions: 12
Compression:
Stored size: 704 Bytes
Contents
require_relative 'task_helper' namespace :dad do namespace :docker do desc 'delete stopped containers and untagged images' task :clean do unless `docker ps -qa --filter status=exited`.empty? run 'docker rm `docker ps -qa --filter status=exited`' end unless `docker images -q --filter "dangling=true"`.empty? run 'docker rmi `docker images -q --filter "dangling=true"`' end end desc 'install Docker' task :install do run_itamae 'docker/install' end namespace :registry do desc 'install Docker Registry' task :install do run_itamae 'docker/install', 'docker/registry/install' end end end end
Version data entries
12 entries across 12 versions & 1 rubygems