* fix: use correct flag for `assume_yes`
The correct flag is `--y`, not `--yes`.
* refactor(docker_compose_v2): use `-y` instead of `--y` to ensure future compatibility
Maybe they'll change it back to `--yes` sometime, so I'll use the short form that most likely won't change.
* docs(docker_compose_v2): add note about `-y` flag
Co-authored-by: Felix Fontein <felix@fontein.de>
* chore: add changelog fragment
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
* add yes option for compose up to assume yes and prevent hanging
* fix type
* add default
* add changelog fragment
* Apply doc suggestion
Co-authored-by: Felix Fontein <felix@fontein.de>
* set version_added to 4.5.0
* use `assume_yes` to avoid clashing with yaml `yes` keyword
* add version check
* default self.yes to False
* update description
* Fail on older version
Co-authored-by: Felix Fontein <felix@fontein.de>
* update changelog fragment
* update description
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
* Vendor parts of the Docker SDK for Python
This is a combination of the latest git version
(db7f8b8bb6)
with some fixes to make it compatible with Python 2.7
and adjusting some imports.
* Polishing.
* Fix bug that prevents contexts to be found when no Docker config file is present.
Ref: https://github.com/docker/docker-py/issues/3190
* Linting.
* Fix typos.
* Adjust more to behavior of Docker CLI.
* Add first iteration of docker_context_info module.
* Improvements.
* Add basic CI.
* Add caveat on contexts[].config result.
* Determine the compose version via a CLI call and not the docker API.
* Update plugins/module_utils/compose_v2.py
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
* add `renew_anon_volumes` parameter to `docker compose up`
* Apply suggestions from code review
Apply suggested changes to Documentation
Co-authored-by: Felix Fontein <felix@fontein.de>
* Fix sanity check error
apply suggestion from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
* add changelog fragment for PR #977
* apply suggested changes to changelog fragment
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Christoph Sieber <Christoph.Sieber@telekom.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
* Catch more warnings that shouldn't be there.
* Add explicit handling of dry-run image build JSON events.
These produce some one-off ID values that don't make any sense as ID values.
* Don't assume that docker version/info JSON output contains the expected fields.
* Allow CLI modules to not require the API version.
* Add changelog fragment.
* Allow to wait for a container to become healthy.
* Improve wording.
Co-authored-by: Don Naro <dnaro@redhat.com>
* Improve explanation.
---------
Co-authored-by: Don Naro <dnaro@redhat.com>