Skip to content

Commit

Permalink
[CLEAN] using option --volumes of docker compose down rather than cal…
Browse files Browse the repository at this point in the history
…ling additional command: docker volume prune --all
  • Loading branch information
c8y3 committed Mar 1, 2024
1 parent d95adf7 commit 1abc62a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/docker_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ def extract_all_logs(self):
return subprocess.check_output(['docker', 'compose', 'logs', '--no-color'], cwd=self._docker_compose_path, universal_newlines=True)

def stop(self):
subprocess.check_call(['docker', 'compose', 'down'], cwd=self._docker_compose_path)
subprocess.check_call(['docker', 'volume', 'prune', '--all', '--force'])
subprocess.check_call(['docker', 'compose', 'down', '--volumes'], cwd=self._docker_compose_path)

0 comments on commit 1abc62a

Please sign in to comment.