6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-15 17:47:13 +00:00

Remove orphan containers on local start

This commit is contained in:
Régis Behmo 2019-03-18 23:03:45 +01:00
parent ed47177ca5
commit 98c24ee243
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
## Latest
- [Improvement] Remove orphan containers on `local start`
## 3.2.0 (2019-03-18) ## 3.2.0 (2019-03-18)
- [Improvement] `images pull` now also pulls vendor images - [Improvement] `images pull` now also pulls vendor images

View File

@ -54,7 +54,7 @@ def pullimages(root):
@opts.root @opts.root
@click.option("-d", "--detach", is_flag=True, help="Start in daemon mode") @click.option("-d", "--detach", is_flag=True, help="Start in daemon mode")
def start(root, detach): def start(root, detach):
command = ["up"] command = ["up", "--remove-orphans"]
if detach: if detach:
command.append("-d") command.append("-d")
docker_compose(root, *command) docker_compose(root, *command)