Class: Dip::Commands::DownAll

Inherits:
Dip::Command show all
Defined in:
lib/dip/commands/down_all.rb

Instance Method Summary collapse

Methods inherited from Dip::Command

exec_program, exec_subprocess

Instance Method Details

#executeObject



8
9
10
11
12
# File 'lib/dip/commands/down_all.rb', line 8

def execute
  exec_subprocess(
    "docker rm --volumes $(docker stop $(docker ps --filter 'label=com.docker.compose.project' -q))"
  )
end