Sha256: 5811bfc50a267ceb5fb51ffca899b4f98305305757116c8ea1ca8fa7f15683ef

Contents?: true

Size: 614 Bytes

Versions: 13

Compression:

Stored size: 614 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

    namespace :registry do

      desc 'install Docker Registry'
      task :install do
        run_itamae 'docker/install', 'docker/registry/install'
      end
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
daddy-0.9.9 lib/tasks/docker.rake
daddy-0.9.8 lib/tasks/docker.rake
daddy-0.9.7 lib/tasks/docker.rake
daddy-0.9.6 lib/tasks/docker.rake
daddy-0.9.5 lib/tasks/docker.rake
daddy-0.9.4 lib/tasks/docker.rake
daddy-0.9.3 lib/tasks/docker.rake
daddy-0.9.2 lib/tasks/docker.rake
daddy-0.9.1 lib/tasks/docker.rake
daddy-0.9.0 lib/tasks/docker.rake
daddy-0.8.1 lib/tasks/docker.rake
daddy-0.8.0 lib/tasks/docker.rake
daddy-0.7.9 lib/tasks/docker.rake