docker_container: fix behavior when image is not specified (#46322)

* Don't simply ignore container in present() if image is not specified.

* Use image from existing container for recreation if not specified.

* Added changelog.

* Improve comment.
This commit is contained in:
Felix Fontein
2018-10-06 15:50:12 +02:00
committed by John R Barker
parent 25dfa78dc2
commit 895019c59b
2 changed files with 37 additions and 26 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- "docker_container - the behavior is improved in case ``image`` is not specified, but needed for (re-)creating the container."