Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/compose/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func watchCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service)
}

cmd.Flags().BoolVar(&buildOpts.quiet, "quiet", false, "hide build output")
cmd.Flags().BoolVar(&watchOpts.prune, "prune", false, "Prune dangling images on rebuild")
cmd.Flags().BoolVar(&watchOpts.prune, "prune", true, "Prune dangling images on rebuild")
cmd.Flags().BoolVar(&watchOpts.noUp, "no-up", false, "Do not build & start services before watching")
return cmd
}
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/compose_watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Watch build context for service and rebuild/refresh containers when files are up
|:------------|:-------|:--------|:----------------------------------------------|
| `--dry-run` | `bool` | | Execute command in dry run mode |
| `--no-up` | `bool` | | Do not build & start services before watching |
| `--prune` | `bool` | | Prune dangling images on rebuild |
| `--prune` | `bool` | `true` | Prune dangling images on rebuild |
| `--quiet` | `bool` | | hide build output |


Expand Down
2 changes: 1 addition & 1 deletion docs/reference/docker_compose_watch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ options:
swarm: false
- option: prune
value_type: bool
default_value: "false"
default_value: "true"
description: Prune dangling images on rebuild
deprecated: false
hidden: false
Expand Down