Debian Codegraph @

ansible_collections/community/docker/CHANGELOG.md

raw
1 # Docker Community Collection Release Notes
2
3 **Topics**
4
5 - <a href="#v5-2-0">v5\.2\.0</a>
6 - <a href="#release-summary">Release Summary</a>
7 - <a href="#minor-changes">Minor Changes</a>
8 - <a href="#v5-1-0">v5\.1\.0</a>
9 - <a href="#release-summary-1">Release Summary</a>
10 - <a href="#minor-changes-1">Minor Changes</a>
11 - <a href="#v5-0-6">v5\.0\.6</a>
12 - <a href="#release-summary-2">Release Summary</a>
13 - <a href="#bugfixes">Bugfixes</a>
14 - <a href="#v5-0-5">v5\.0\.5</a>
15 - <a href="#release-summary-3">Release Summary</a>
16 - <a href="#bugfixes-1">Bugfixes</a>
17 - <a href="#v5-0-4">v5\.0\.4</a>
18 - <a href="#release-summary-4">Release Summary</a>
19 - <a href="#bugfixes-2">Bugfixes</a>
20 - <a href="#v5-0-3">v5\.0\.3</a>
21 - <a href="#release-summary-5">Release Summary</a>
22 - <a href="#bugfixes-3">Bugfixes</a>
23 - <a href="#v5-0-2">v5\.0\.2</a>
24 - <a href="#release-summary-6">Release Summary</a>
25 - <a href="#bugfixes-4">Bugfixes</a>
26 - <a href="#known-issues">Known Issues</a>
27 - <a href="#v5-0-1">v5\.0\.1</a>
28 - <a href="#release-summary-7">Release Summary</a>
29 - <a href="#bugfixes-5">Bugfixes</a>
30 - <a href="#v5-0-0">v5\.0\.0</a>
31 - <a href="#release-summary-8">Release Summary</a>
32 - <a href="#minor-changes-2">Minor Changes</a>
33 - <a href="#breaking-changes--porting-guide">Breaking Changes / Porting Guide</a>
34 - <a href="#removed-features-previously-deprecated">Removed Features \(previously deprecated\)</a>
35 - <a href="#bugfixes-6">Bugfixes</a>
36 - <a href="#v4-8-1">v4\.8\.1</a>
37 - <a href="#release-summary-9">Release Summary</a>
38 - <a href="#minor-changes-3">Minor Changes</a>
39 - <a href="#bugfixes-7">Bugfixes</a>
40 - <a href="#v4-8-0">v4\.8\.0</a>
41 - <a href="#release-summary-10">Release Summary</a>
42 - <a href="#minor-changes-4">Minor Changes</a>
43 - <a href="#bugfixes-8">Bugfixes</a>
44 - <a href="#v4-7-0">v4\.7\.0</a>
45 - <a href="#release-summary-11">Release Summary</a>
46 - <a href="#minor-changes-5">Minor Changes</a>
47 - <a href="#bugfixes-9">Bugfixes</a>
48 - <a href="#v4-6-2">v4\.6\.2</a>
49 - <a href="#release-summary-12">Release Summary</a>
50 - <a href="#bugfixes-10">Bugfixes</a>
51 - <a href="#v4-6-1">v4\.6\.1</a>
52 - <a href="#release-summary-13">Release Summary</a>
53 - <a href="#bugfixes-11">Bugfixes</a>
54 - <a href="#v4-6-0">v4\.6\.0</a>
55 - <a href="#release-summary-14">Release Summary</a>
56 - <a href="#minor-changes-6">Minor Changes</a>
57 - <a href="#v4-5-2">v4\.5\.2</a>
58 - <a href="#release-summary-15">Release Summary</a>
59 - <a href="#bugfixes-12">Bugfixes</a>
60 - <a href="#v4-5-1">v4\.5\.1</a>
61 - <a href="#release-summary-16">Release Summary</a>
62 - <a href="#bugfixes-13">Bugfixes</a>
63 - <a href="#v4-5-0">v4\.5\.0</a>
64 - <a href="#release-summary-17">Release Summary</a>
65 - <a href="#minor-changes-7">Minor Changes</a>
66 - <a href="#v4-4-0">v4\.4\.0</a>
67 - <a href="#release-summary-18">Release Summary</a>
68 - <a href="#bugfixes-14">Bugfixes</a>
69 - <a href="#new-modules">New Modules</a>
70 - <a href="#v4-3-1">v4\.3\.1</a>
71 - <a href="#release-summary-19">Release Summary</a>
72 - <a href="#bugfixes-15">Bugfixes</a>
73 - <a href="#v4-3-0">v4\.3\.0</a>
74 - <a href="#release-summary-20">Release Summary</a>
75 - <a href="#minor-changes-8">Minor Changes</a>
76 - <a href="#v4-2-0">v4\.2\.0</a>
77 - <a href="#release-summary-21">Release Summary</a>
78 - <a href="#minor-changes-9">Minor Changes</a>
79 - <a href="#bugfixes-16">Bugfixes</a>
80 - <a href="#v4-1-0">v4\.1\.0</a>
81 - <a href="#release-summary-22">Release Summary</a>
82 - <a href="#minor-changes-10">Minor Changes</a>
83 - <a href="#bugfixes-17">Bugfixes</a>
84 - <a href="#v4-0-1">v4\.0\.1</a>
85 - <a href="#release-summary-23">Release Summary</a>
86 - <a href="#bugfixes-18">Bugfixes</a>
87 - <a href="#v4-0-0">v4\.0\.0</a>
88 - <a href="#release-summary-24">Release Summary</a>
89 - <a href="#minor-changes-11">Minor Changes</a>
90 - <a href="#breaking-changes--porting-guide-1">Breaking Changes / Porting Guide</a>
91 - <a href="#removed-features-previously-deprecated-1">Removed Features \(previously deprecated\)</a>
92 - <a href="#v3-13-1">v3\.13\.1</a>
93 - <a href="#release-summary-25">Release Summary</a>
94 - <a href="#bugfixes-19">Bugfixes</a>
95 - <a href="#v3-13-0">v3\.13\.0</a>
96 - <a href="#release-summary-26">Release Summary</a>
97 - <a href="#new-modules-1">New Modules</a>
98 - <a href="#v3-12-2">v3\.12\.2</a>
99 - <a href="#release-summary-27">Release Summary</a>
100 - <a href="#bugfixes-20">Bugfixes</a>
101 - <a href="#v3-12-1">v3\.12\.1</a>
102 - <a href="#release-summary-28">Release Summary</a>
103 - <a href="#deprecated-features">Deprecated Features</a>
104 - <a href="#v3-12-0">v3\.12\.0</a>
105 - <a href="#release-summary-29">Release Summary</a>
106 - <a href="#minor-changes-12">Minor Changes</a>
107 - <a href="#bugfixes-21">Bugfixes</a>
108 - <a href="#known-issues-1">Known Issues</a>
109 - <a href="#v3-11-0">v3\.11\.0</a>
110 - <a href="#minor-changes-13">Minor Changes</a>
111 - <a href="#bugfixes-22">Bugfixes</a>
112 - <a href="#v3-10-4">v3\.10\.4</a>
113 - <a href="#release-summary-30">Release Summary</a>
114 - <a href="#bugfixes-23">Bugfixes</a>
115 - <a href="#v3-10-3">v3\.10\.3</a>
116 - <a href="#release-summary-31">Release Summary</a>
117 - <a href="#bugfixes-24">Bugfixes</a>
118 - <a href="#v3-10-2">v3\.10\.2</a>
119 - <a href="#release-summary-32">Release Summary</a>
120 - <a href="#bugfixes-25">Bugfixes</a>
121 - <a href="#v3-10-1">v3\.10\.1</a>
122 - <a href="#release-summary-33">Release Summary</a>
123 - <a href="#bugfixes-26">Bugfixes</a>
124 - <a href="#known-issues-2">Known Issues</a>
125 - <a href="#v3-10-0">v3\.10\.0</a>
126 - <a href="#release-summary-34">Release Summary</a>
127 - <a href="#minor-changes-14">Minor Changes</a>
128 - <a href="#deprecated-features-1">Deprecated Features</a>
129 - <a href="#v3-9-0">v3\.9\.0</a>
130 - <a href="#release-summary-35">Release Summary</a>
131 - <a href="#minor-changes-15">Minor Changes</a>
132 - <a href="#bugfixes-27">Bugfixes</a>
133 - <a href="#v3-8-1">v3\.8\.1</a>
134 - <a href="#release-summary-36">Release Summary</a>
135 - <a href="#security-fixes">Security Fixes</a>
136 - <a href="#bugfixes-28">Bugfixes</a>
137 - <a href="#v3-8-0">v3\.8\.0</a>
138 - <a href="#release-summary-37">Release Summary</a>
139 - <a href="#minor-changes-16">Minor Changes</a>
140 - <a href="#bugfixes-29">Bugfixes</a>
141 - <a href="#v3-7-0">v3\.7\.0</a>
142 - <a href="#release-summary-38">Release Summary</a>
143 - <a href="#minor-changes-17">Minor Changes</a>
144 - <a href="#bugfixes-30">Bugfixes</a>
145 - <a href="#new-modules-2">New Modules</a>
146 - <a href="#v3-6-0">v3\.6\.0</a>
147 - <a href="#release-summary-39">Release Summary</a>
148 - <a href="#major-changes">Major Changes</a>
149 - <a href="#minor-changes-18">Minor Changes</a>
150 - <a href="#bugfixes-31">Bugfixes</a>
151 - <a href="#new-modules-3">New Modules</a>
152 - <a href="#v3-5-0">v3\.5\.0</a>
153 - <a href="#release-summary-40">Release Summary</a>
154 - <a href="#minor-changes-19">Minor Changes</a>
155 - <a href="#deprecated-features-2">Deprecated Features</a>
156 - <a href="#bugfixes-32">Bugfixes</a>
157 - <a href="#v3-4-11">v3\.4\.11</a>
158 - <a href="#release-summary-41">Release Summary</a>
159 - <a href="#bugfixes-33">Bugfixes</a>
160 - <a href="#v3-4-10">v3\.4\.10</a>
161 - <a href="#release-summary-42">Release Summary</a>
162 - <a href="#bugfixes-34">Bugfixes</a>
163 - <a href="#v3-4-9">v3\.4\.9</a>
164 - <a href="#release-summary-43">Release Summary</a>
165 - <a href="#bugfixes-35">Bugfixes</a>
166 - <a href="#v3-4-8">v3\.4\.8</a>
167 - <a href="#release-summary-44">Release Summary</a>
168 - <a href="#known-issues-3">Known Issues</a>
169 - <a href="#v3-4-7">v3\.4\.7</a>
170 - <a href="#release-summary-45">Release Summary</a>
171 - <a href="#bugfixes-36">Bugfixes</a>
172 - <a href="#v3-4-6">v3\.4\.6</a>
173 - <a href="#release-summary-46">Release Summary</a>
174 - <a href="#bugfixes-37">Bugfixes</a>
175 - <a href="#known-issues-4">Known Issues</a>
176 - <a href="#v3-4-5">v3\.4\.5</a>
177 - <a href="#release-summary-47">Release Summary</a>
178 - <a href="#bugfixes-38">Bugfixes</a>
179 - <a href="#v3-4-4">v3\.4\.4</a>
180 - <a href="#release-summary-48">Release Summary</a>
181 - <a href="#minor-changes-20">Minor Changes</a>
182 - <a href="#known-issues-5">Known Issues</a>
183 - <a href="#v3-4-3">v3\.4\.3</a>
184 - <a href="#release-summary-49">Release Summary</a>
185 - <a href="#v3-4-2">v3\.4\.2</a>
186 - <a href="#release-summary-50">Release Summary</a>
187 - <a href="#bugfixes-39">Bugfixes</a>
188 - <a href="#v3-4-1">v3\.4\.1</a>
189 - <a href="#release-summary-51">Release Summary</a>
190 - <a href="#bugfixes-40">Bugfixes</a>
191 - <a href="#v3-4-0">v3\.4\.0</a>
192 - <a href="#release-summary-52">Release Summary</a>
193 - <a href="#minor-changes-21">Minor Changes</a>
194 - <a href="#bugfixes-41">Bugfixes</a>
195 - <a href="#new-modules-4">New Modules</a>
196 - <a href="#v3-3-2">v3\.3\.2</a>
197 - <a href="#release-summary-53">Release Summary</a>
198 - <a href="#bugfixes-42">Bugfixes</a>
199 - <a href="#v3-3-1">v3\.3\.1</a>
200 - <a href="#release-summary-54">Release Summary</a>
201 - <a href="#bugfixes-43">Bugfixes</a>
202 - <a href="#v3-3-0">v3\.3\.0</a>
203 - <a href="#release-summary-55">Release Summary</a>
204 - <a href="#minor-changes-22">Minor Changes</a>
205 - <a href="#bugfixes-44">Bugfixes</a>
206 - <a href="#v3-2-2">v3\.2\.2</a>
207 - <a href="#release-summary-56">Release Summary</a>
208 - <a href="#bugfixes-45">Bugfixes</a>
209 - <a href="#v3-2-1">v3\.2\.1</a>
210 - <a href="#release-summary-57">Release Summary</a>
211 - <a href="#v3-2-0">v3\.2\.0</a>
212 - <a href="#release-summary-58">Release Summary</a>
213 - <a href="#minor-changes-23">Minor Changes</a>
214 - <a href="#deprecated-features-3">Deprecated Features</a>
215 - <a href="#v3-1-0">v3\.1\.0</a>
216 - <a href="#release-summary-59">Release Summary</a>
217 - <a href="#minor-changes-24">Minor Changes</a>
218 - <a href="#v3-0-2">v3\.0\.2</a>
219 - <a href="#release-summary-60">Release Summary</a>
220 - <a href="#bugfixes-46">Bugfixes</a>
221 - <a href="#v3-0-1">v3\.0\.1</a>
222 - <a href="#release-summary-61">Release Summary</a>
223 - <a href="#bugfixes-47">Bugfixes</a>
224 - <a href="#v3-0-0">v3\.0\.0</a>
225 - <a href="#release-summary-62">Release Summary</a>
226 - <a href="#major-changes-1">Major Changes</a>
227 - <a href="#minor-changes-25">Minor Changes</a>
228 - <a href="#breaking-changes--porting-guide-2">Breaking Changes / Porting Guide</a>
229 - <a href="#removed-features-previously-deprecated-2">Removed Features \(previously deprecated\)</a>
230 - <a href="#security-fixes-1">Security Fixes</a>
231 - <a href="#bugfixes-48">Bugfixes</a>
232 - <a href="#v2-7-0">v2\.7\.0</a>
233 - <a href="#release-summary-63">Release Summary</a>
234 - <a href="#minor-changes-26">Minor Changes</a>
235 - <a href="#deprecated-features-4">Deprecated Features</a>
236 - <a href="#bugfixes-49">Bugfixes</a>
237 - <a href="#v2-6-0">v2\.6\.0</a>
238 - <a href="#release-summary-64">Release Summary</a>
239 - <a href="#minor-changes-27">Minor Changes</a>
240 - <a href="#deprecated-features-5">Deprecated Features</a>
241 - <a href="#bugfixes-50">Bugfixes</a>
242 - <a href="#v2-5-1">v2\.5\.1</a>
243 - <a href="#release-summary-65">Release Summary</a>
244 - <a href="#bugfixes-51">Bugfixes</a>
245 - <a href="#v2-5-0">v2\.5\.0</a>
246 - <a href="#release-summary-66">Release Summary</a>
247 - <a href="#minor-changes-28">Minor Changes</a>
248 - <a href="#v2-4-0">v2\.4\.0</a>
249 - <a href="#release-summary-67">Release Summary</a>
250 - <a href="#minor-changes-29">Minor Changes</a>
251 - <a href="#bugfixes-52">Bugfixes</a>
252 - <a href="#v2-3-0">v2\.3\.0</a>
253 - <a href="#release-summary-68">Release Summary</a>
254 - <a href="#minor-changes-30">Minor Changes</a>
255 - <a href="#bugfixes-53">Bugfixes</a>
256 - <a href="#v2-2-1">v2\.2\.1</a>
257 - <a href="#release-summary-69">Release Summary</a>
258 - <a href="#bugfixes-54">Bugfixes</a>
259 - <a href="#v2-2-0">v2\.2\.0</a>
260 - <a href="#release-summary-70">Release Summary</a>
261 - <a href="#minor-changes-31">Minor Changes</a>
262 - <a href="#bugfixes-55">Bugfixes</a>
263 - <a href="#v2-1-1">v2\.1\.1</a>
264 - <a href="#release-summary-71">Release Summary</a>
265 - <a href="#bugfixes-56">Bugfixes</a>
266 - <a href="#v2-1-0">v2\.1\.0</a>
267 - <a href="#release-summary-72">Release Summary</a>
268 - <a href="#minor-changes-32">Minor Changes</a>
269 - <a href="#bugfixes-57">Bugfixes</a>
270 - <a href="#v2-0-2">v2\.0\.2</a>
271 - <a href="#release-summary-73">Release Summary</a>
272 - <a href="#bugfixes-58">Bugfixes</a>
273 - <a href="#v2-0-1">v2\.0\.1</a>
274 - <a href="#release-summary-74">Release Summary</a>
275 - <a href="#v2-0-0">v2\.0\.0</a>
276 - <a href="#release-summary-75">Release Summary</a>
277 - <a href="#breaking-changes--porting-guide-3">Breaking Changes / Porting Guide</a>
278 - <a href="#deprecated-features-6">Deprecated Features</a>
279 - <a href="#removed-features-previously-deprecated-3">Removed Features \(previously deprecated\)</a>
280 - <a href="#v1-10-0">v1\.10\.0</a>
281 - <a href="#release-summary-76">Release Summary</a>
282 - <a href="#minor-changes-33">Minor Changes</a>
283 - <a href="#v1-9-1">v1\.9\.1</a>
284 - <a href="#release-summary-77">Release Summary</a>
285 - <a href="#bugfixes-59">Bugfixes</a>
286 - <a href="#v1-9-0">v1\.9\.0</a>
287 - <a href="#release-summary-78">Release Summary</a>
288 - <a href="#minor-changes-34">Minor Changes</a>
289 - <a href="#deprecated-features-7">Deprecated Features</a>
290 - <a href="#bugfixes-60">Bugfixes</a>
291 - <a href="#new-plugins">New Plugins</a>
292 - <a href="#connection">Connection</a>
293 - <a href="#v1-8-0">v1\.8\.0</a>
294 - <a href="#release-summary-79">Release Summary</a>
295 - <a href="#minor-changes-35">Minor Changes</a>
296 - <a href="#bugfixes-61">Bugfixes</a>
297 - <a href="#v1-7-0">v1\.7\.0</a>
298 - <a href="#release-summary-80">Release Summary</a>
299 - <a href="#minor-changes-36">Minor Changes</a>
300 - <a href="#v1-6-1">v1\.6\.1</a>
301 - <a href="#release-summary-81">Release Summary</a>
302 - <a href="#bugfixes-62">Bugfixes</a>
303 - <a href="#v1-6-0">v1\.6\.0</a>
304 - <a href="#release-summary-82">Release Summary</a>
305 - <a href="#minor-changes-37">Minor Changes</a>
306 - <a href="#deprecated-features-8">Deprecated Features</a>
307 - <a href="#bugfixes-63">Bugfixes</a>
308 - <a href="#v1-5-0">v1\.5\.0</a>
309 - <a href="#release-summary-83">Release Summary</a>
310 - <a href="#minor-changes-38">Minor Changes</a>
311 - <a href="#bugfixes-64">Bugfixes</a>
312 - <a href="#new-modules-5">New Modules</a>
313 - <a href="#v1-4-0">v1\.4\.0</a>
314 - <a href="#release-summary-84">Release Summary</a>
315 - <a href="#minor-changes-39">Minor Changes</a>
316 - <a href="#breaking-changes--porting-guide-4">Breaking Changes / Porting Guide</a>
317 - <a href="#security-fixes-2">Security Fixes</a>
318 - <a href="#bugfixes-65">Bugfixes</a>
319 - <a href="#v1-3-0">v1\.3\.0</a>
320 - <a href="#release-summary-85">Release Summary</a>
321 - <a href="#minor-changes-40">Minor Changes</a>
322 - <a href="#bugfixes-66">Bugfixes</a>
323 - <a href="#new-modules-6">New Modules</a>
324 - <a href="#v1-2-2">v1\.2\.2</a>
325 - <a href="#release-summary-86">Release Summary</a>
326 - <a href="#security-fixes-3">Security Fixes</a>
327 - <a href="#v1-2-1">v1\.2\.1</a>
328 - <a href="#release-summary-87">Release Summary</a>
329 - <a href="#bugfixes-67">Bugfixes</a>
330 - <a href="#v1-2-0">v1\.2\.0</a>
331 - <a href="#release-summary-88">Release Summary</a>
332 - <a href="#minor-changes-41">Minor Changes</a>
333 - <a href="#bugfixes-68">Bugfixes</a>
334 - <a href="#v1-1-0">v1\.1\.0</a>
335 - <a href="#release-summary-89">Release Summary</a>
336 - <a href="#minor-changes-42">Minor Changes</a>
337 - <a href="#deprecated-features-9">Deprecated Features</a>
338 - <a href="#bugfixes-69">Bugfixes</a>
339 - <a href="#new-plugins-1">New Plugins</a>
340 - <a href="#connection-1">Connection</a>
341 - <a href="#inventory">Inventory</a>
342 - <a href="#new-modules-7">New Modules</a>
343 - <a href="#v1-0-1">v1\.0\.1</a>
344 - <a href="#release-summary-90">Release Summary</a>
345 - <a href="#bugfixes-70">Bugfixes</a>
346 - <a href="#v1-0-0">v1\.0\.0</a>
347 - <a href="#release-summary-91">Release Summary</a>
348 - <a href="#minor-changes-43">Minor Changes</a>
349 - <a href="#v0-1-0">v0\.1\.0</a>
350 - <a href="#release-summary-92">Release Summary</a>
351 - <a href="#minor-changes-44">Minor Changes</a>
352 - <a href="#removed-features-previously-deprecated-4">Removed Features \(previously deprecated\)</a>
353 - <a href="#bugfixes-71">Bugfixes</a>
354
355 <a id="v5-2-0"></a>
356 ## v5\.2\.0
357
358 <a id="release-summary"></a>
359 ### Release Summary
360
361 Feature release\.
362
363 <a id="minor-changes"></a>
364 ### Minor Changes
365
366 * docker\_image\_export \- adds <code>platform</code> parameter to allow exporting a specific platform variant from a multi\-arch image \([https\://github\.com/ansible\-collections/community\.docker/issues/1064](https\://github\.com/ansible\-collections/community\.docker/issues/1064)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1251](https\://github\.com/ansible\-collections/community\.docker/pull/1251)\)\.
367
368 <a id="v5-1-0"></a>
369 ## v5\.1\.0
370
371 <a id="release-summary-1"></a>
372 ### Release Summary
373
374 Feature release\.
375
376 <a id="minor-changes-1"></a>
377 ### Minor Changes
378
379 * docker\_compose\_v2\_pull \- adds <code>ignore\_pull\_failures</code> parameter that passes <code>\-\-ignore\-pull\-failures</code> to the <code>docker compose pull</code> call when set to <code>true</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1248](https\://github\.com/ansible\-collections/community\.docker/pull/1248)\)\.
380
381 <a id="v5-0-6"></a>
382 ## v5\.0\.6
383
384 <a id="release-summary-2"></a>
385 ### Release Summary
386
387 Bugfix release\.
388
389 <a id="bugfixes"></a>
390 ### Bugfixes
391
392 * docker\_image\_pull\, docker\_container \- fix pulled image change detection for Docker 29\.2\+ \([https\://github\.com/ansible\-collections/community\.docker/pull/1242](https\://github\.com/ansible\-collections/community\.docker/pull/1242)\)\.
393
394 <a id="v5-0-5"></a>
395 ## v5\.0\.5
396
397 <a id="release-summary-3"></a>
398 ### Release Summary
399
400 Bugfix release\.
401
402 <a id="bugfixes-1"></a>
403 ### Bugfixes
404
405 * modules and plugins using the Docker SDK for Python \- do not automatically set <code>tls\_hostname</code> when <code>validate\_certs\=true</code> for Docker SDK for Python 7\.0\.0\+ \([https\://github\.com/ansible\-collections/community\.docker/issues/1225](https\://github\.com/ansible\-collections/community\.docker/issues/1225)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1226](https\://github\.com/ansible\-collections/community\.docker/pull/1226)\)\.
406
407 <a id="v5-0-4"></a>
408 ## v5\.0\.4
409
410 <a id="release-summary-4"></a>
411 ### Release Summary
412
413 Bugfix release\.
414
415 <a id="bugfixes-2"></a>
416 ### Bugfixes
417
418 * CLI\-based modules \- when parsing JSON output fails\, also provide standard error output\. Also provide information on the command and its result in machine\-readable way \([https\://github\.com/ansible\-collections/community\.docker/issues/1216](https\://github\.com/ansible\-collections/community\.docker/issues/1216)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1221](https\://github\.com/ansible\-collections/community\.docker/pull/1221)\)\.
419 * docker\_compose\_v2\, docker\_compose\_v2\_pull \- adjust parsing from image pull events to changes in Docker Compose 5\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/1219](https\://github\.com/ansible\-collections/community\.docker/pull/1219)\)\.
420
421 <a id="v5-0-3"></a>
422 ## v5\.0\.3
423
424 <a id="release-summary-5"></a>
425 ### Release Summary
426
427 Bugfix release\.
428
429 <a id="bugfixes-3"></a>
430 ### Bugfixes
431
432 * docker\_container \- when the same port is mapped more than once for the same protocol without specifying an interface\, a bug caused an invalid value to be passed for the interface \([https\://github\.com/ansible\-collections/community\.docker/issues/1213](https\://github\.com/ansible\-collections/community\.docker/issues/1213)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1214](https\://github\.com/ansible\-collections/community\.docker/pull/1214)\)\.
433
434 <a id="v5-0-2"></a>
435 ## v5\.0\.2
436
437 <a id="release-summary-6"></a>
438 ### Release Summary
439
440 Bugfix release for Docker 29\.
441
442 <a id="bugfixes-4"></a>
443 ### Bugfixes
444
445 * Docker CLI based modules \- work around bug in Docker 29\.0\.0 that caused a breaking change in <code>docker version \-\-format json</code> output \([https\://github\.com/ansible\-collections/community\.docker/issues/1185](https\://github\.com/ansible\-collections/community\.docker/issues/1185)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1187](https\://github\.com/ansible\-collections/community\.docker/pull/1187)\)\.
446 * docker\_container \- fix <code>pull</code> idempotency with Docker 29\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/1192](https\://github\.com/ansible\-collections/community\.docker/pull/1192)\)\.
447 * docker\_container \- fix handling of exposed port ranges\. So far\, the module used an undocumented feature of Docker that was removed from Docker 29\.0\.0\, that allowed to pass the range to the deamon and let handle it\. Now the module explodes ranges into a list of all contained ports\, same as the Docker CLI does\. For backwards compatibility with Docker \< 29\.0\.0\, it also explodes ranges returned by the API for existing containers so that comparison should only indicate a difference if the ranges actually change \([https\://github\.com/ansible\-collections/community\.docker/pull/1192](https\://github\.com/ansible\-collections/community\.docker/pull/1192)\)\.
448 * docker\_container \- fix idempotency for IPv6 addresses with Docker 29\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/1192](https\://github\.com/ansible\-collections/community\.docker/pull/1192)\)\.
449 * docker\_image \- fix <code>source\=pull</code> idempotency with Docker 29\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/1192](https\://github\.com/ansible\-collections/community\.docker/pull/1192)\)\.
450 * docker\_image\, docker\_image\_push \- adjust image push detection to Docker 29 \([https\://github\.com/ansible\-collections/community\.docker/pull/1199](https\://github\.com/ansible\-collections/community\.docker/pull/1199)\)\.
451 * docker\_image\_pull \- fix idempotency with Docker 29\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/1192](https\://github\.com/ansible\-collections/community\.docker/pull/1192)\)\.
452 * docker\_network \- fix idempotency for IPv6 addresses and networks with Docker 29\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/1201](https\://github\.com/ansible\-collections/community\.docker/pull/1201)\)\.
453
454 <a id="known-issues"></a>
455 ### Known Issues
456
457 * docker\_image\, docker\_image\_export \- idempotency for archiving images depends on whether the image IDs used by the image storage backend correspond to the IDs used in the tarball\'s <code>manifest\.json</code> files\. The new default backend in Docker 29 apparently uses image IDs that no longer correspond\, whence idempotency no longer works \([https\://github\.com/ansible\-collections/community\.docker/pull/1199](https\://github\.com/ansible\-collections/community\.docker/pull/1199)\)\.
458
459 <a id="v5-0-1"></a>
460 ## v5\.0\.1
461
462 <a id="release-summary-7"></a>
463 ### Release Summary
464
465 Bugfix release\.
466
467 <a id="bugfixes-5"></a>
468 ### Bugfixes
469
470 * docker\_compose\_v2\_run \- when <code>detach\=true</code>\, ensure that the returned container ID is not a bytes string \([https\://github\.com/ansible\-collections/community\.docker/pull/1183](https\://github\.com/ansible\-collections/community\.docker/pull/1183)\)\.
471 * docker\_image \- fix \'Cannot locate specified Dockerfile\' error \([https\://github\.com/ansible\-collections/community\.docker/pull/1184](https\://github\.com/ansible\-collections/community\.docker/pull/1184)\)\.
472
473 <a id="v5-0-0"></a>
474 ## v5\.0\.0
475
476 <a id="release-summary-8"></a>
477 ### Release Summary
478
479 New major release\.
480
481 The main changes are that the collection dropped support for some ansible\-core
482 versions that are End of Life\, and thus dropped support for Python 2\.7\.
483 This allowed to modernize the Python code\, in particular with type hints\.
484 Also all module and plugin utils are now private to the collection\, which
485 makes it easier to refactor code\. All these changes should have no effect on
486 end\-users\.
487
488 <a id="minor-changes-2"></a>
489 ### Minor Changes
490
491 * docker\_container \- add <code>driver\_opts</code> option in <code>networks</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/1142](https\://github\.com/ansible\-collections/community\.docker/issues/1142)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1143](https\://github\.com/ansible\-collections/community\.docker/pull/1143)\)\.
492 * docker\_container \- add <code>gw\_priority</code> option in <code>networks</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/1142](https\://github\.com/ansible\-collections/community\.docker/issues/1142)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1143](https\://github\.com/ansible\-collections/community\.docker/pull/1143)\)\.
493
494 <a id="breaking-changes--porting-guide"></a>
495 ### Breaking Changes / Porting Guide
496
497 * All doc fragments\, module utils\, and plugin utils are from now on private\. They can change at any time\, and have breaking changes even in bugfix releases \([https\://github\.com/ansible\-collections/community\.docker/pull/1144](https\://github\.com/ansible\-collections/community\.docker/pull/1144)\)\.
498
499 <a id="removed-features-previously-deprecated"></a>
500 ### Removed Features \(previously deprecated\)
501
502 * Remove support for Docker SDK for Python version 1\.x\.y\, also known as <code>docker\-py</code>\. Modules and plugins that use Docker SDK for Python require version 2\.0\.0\+ \([https\://github\.com/ansible\-collections/community\.docker/pull/1171](https\://github\.com/ansible\-collections/community\.docker/pull/1171)\)\.
503 * The collection no longer supports Python 3\.6 and before\. Note that this coincides with the Python requirements of ansible\-core 2\.17\+ \([https\://github\.com/ansible\-collections/community\.docker/pull/1123](https\://github\.com/ansible\-collections/community\.docker/pull/1123)\)\.
504 * The collection no longer supports ansible\-core 2\.15 and 2\.16\. You need ansible\-core 2\.17\.0 or newer to use community\.docker 5\.x\.y \([https\://github\.com/ansible\-collections/community\.docker/pull/1123](https\://github\.com/ansible\-collections/community\.docker/pull/1123)\)\.
505
506 <a id="bugfixes-6"></a>
507 ### Bugfixes
508
509 * docker connection plugin \- fix crash instead of warning if Docker version does not support <code>remote\_user</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1161](https\://github\.com/ansible\-collections/community\.docker/pull/1161)\)\.
510 * docker\, nsenter connection plugins \- fix handling of <code>become</code> plugin password prompt handling in case multiple events arrive at the same time \([https\://github\.com/ansible\-collections/community\.docker/pull/1158](https\://github\.com/ansible\-collections/community\.docker/pull/1158)\)\.
511 * docker\_api connection plugin \- fix bug that could lead to loss of data when waiting for <code>become</code> plugin prompt \([https\://github\.com/ansible\-collections/community\.docker/pull/1152](https\://github\.com/ansible\-collections/community\.docker/pull/1152)\)\.
512 * docker\_compose\_v2\_exec \- fix crash instead of reporting error if <code>detach\=true</code> and <code>stdin</code> is provided \([https\://github\.com/ansible\-collections/community\.docker/pull/1161](https\://github\.com/ansible\-collections/community\.docker/pull/1161)\)\.
513 * docker\_compose\_v2\_run \- fix crash instead of reporting error if <code>detach\=true</code> and <code>stdin</code> is provided \([https\://github\.com/ansible\-collections/community\.docker/pull/1161](https\://github\.com/ansible\-collections/community\.docker/pull/1161)\)\.
514 * docker\_container\_exec \- fix bug that could lead to loss of stdout/stderr data \([https\://github\.com/ansible\-collections/community\.docker/pull/1152](https\://github\.com/ansible\-collections/community\.docker/pull/1152)\)\.
515 * docker\_container\_exec \- make <code>detach\=true</code> work\. So far this resulted in no execution being done \([https\://github\.com/ansible\-collections/community\.docker/pull/1145](https\://github\.com/ansible\-collections/community\.docker/pull/1145)\)\.
516 * docker\_plugin \- fix diff mode for plugin options \([https\://github\.com/ansible\-collections/community\.docker/pull/1146](https\://github\.com/ansible\-collections/community\.docker/pull/1146)\)\.
517
518 <a id="v4-8-1"></a>
519 ## v4\.8\.1
520
521 <a id="release-summary-9"></a>
522 ### Release Summary
523
524 Maintenance release\.
525
526 <a id="minor-changes-3"></a>
527 ### Minor Changes
528
529 * Note that some new code in <code>plugins/module\_utils/\_six\.py</code> is MIT licensed \([https\://github\.com/ansible\-collections/community\.docker/pull/1138](https\://github\.com/ansible\-collections/community\.docker/pull/1138)\)\.
530
531 <a id="bugfixes-7"></a>
532 ### Bugfixes
533
534 * Avoid remaining usages of deprecated <code>ansible\.module\_utils\.six</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1133](https\://github\.com/ansible\-collections/community\.docker/pull/1133)\)\.
535 * Avoid usage of deprecated <code>ansible\.module\_utils\.six</code> in all code that does not have to support Python 2 \([https\://github\.com/ansible\-collections/community\.docker/pull/1137](https\://github\.com/ansible\-collections/community\.docker/pull/1137)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1139](https\://github\.com/ansible\-collections/community\.docker/pull/1139)\)\.
536 * Avoid usage of deprecated <code>ansible\.module\_utils\.six</code> in some of the code that still supports Python 2 \([https\://github\.com/ansible\-collections/community\.docker/pull/1138](https\://github\.com/ansible\-collections/community\.docker/pull/1138)\)\.
537
538 <a id="v4-8-0"></a>
539 ## v4\.8\.0
540
541 <a id="release-summary-10"></a>
542 ### Release Summary
543
544 Bugfix and feature release\.
545
546 <a id="minor-changes-4"></a>
547 ### Minor Changes
548
549 * docker\_container \- support missing fields and new mount types in <code>mounts</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/1129](https\://github\.com/ansible\-collections/community\.docker/issues/1129)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1134](https\://github\.com/ansible\-collections/community\.docker/pull/1134)\)\.
550
551 <a id="bugfixes-8"></a>
552 ### Bugfixes
553
554 * Avoid deprecated functionality in ansible\-core 2\.20 \([https\://github\.com/ansible\-collections/community\.docker/pull/1117](https\://github\.com/ansible\-collections/community\.docker/pull/1117)\)\.
555
556 <a id="v4-7-0"></a>
557 ## v4\.7\.0
558
559 <a id="release-summary-11"></a>
560 ### Release Summary
561
562 Bugfix and feature release\.
563
564 <a id="minor-changes-5"></a>
565 ### Minor Changes
566
567 * docker\_swarm\_service \- add support for <code>replicated\-job</code> mode for Swarm services \([https\://github\.com/ansible\-collections/community\.docker/issues/626](https\://github\.com/ansible\-collections/community\.docker/issues/626)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1108](https\://github\.com/ansible\-collections/community\.docker/pull/1108)\)\.
568
569 <a id="bugfixes-9"></a>
570 ### Bugfixes
571
572 * docker\_image\, docker\_image\_push \- work around a bug in Docker 28\.3\.3 that prevents pushing without authentication to a registry \([https\://github\.com/ansible\-collections/community\.docker/pull/1110](https\://github\.com/ansible\-collections/community\.docker/pull/1110)\)\.
573
574 <a id="v4-6-2"></a>
575 ## v4\.6\.2
576
577 <a id="release-summary-12"></a>
578 ### Release Summary
579
580 Bugfix release for Docker Compose 2\.39\.0\+\.
581
582 <a id="bugfixes-10"></a>
583 ### Bugfixes
584
585 * docker\_compose\_v2 \- adjust to new dry\-run build events in Docker Compose 2\.39\.0\+ \([https\://github\.com/ansible\-collections/community\.docker/pull/1101](https\://github\.com/ansible\-collections/community\.docker/pull/1101)\)\.
586
587 <a id="v4-6-1"></a>
588 ## v4\.6\.1
589
590 <a id="release-summary-13"></a>
591 ### Release Summary
592
593 Bugfix release\.
594
595 <a id="bugfixes-11"></a>
596 ### Bugfixes
597
598 * docker\_compose\_v2 \- handle a \(potentially unintentional\) breaking change in Docker Compose 2\.37\.0\. Note that <code>ContainerName</code> is no longer part of the return value \([https\://github\.com/ansible\-collections/community\.docker/issues/1082](https\://github\.com/ansible\-collections/community\.docker/issues/1082)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1083](https\://github\.com/ansible\-collections/community\.docker/pull/1083)\)\.
599 * docker\_container \- fix idempotency if <code>command\=\[\]</code> and <code>command\_handling\=correct</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/1080](https\://github\.com/ansible\-collections/community\.docker/issues/1080)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1085](https\://github\.com/ansible\-collections/community\.docker/pull/1085)\)\.
600
601 <a id="v4-6-0"></a>
602 ## v4\.6\.0
603
604 <a id="release-summary-14"></a>
605 ### Release Summary
606
607 Feature release\.
608
609 <a id="minor-changes-6"></a>
610 ### Minor Changes
611
612 * docker\_container\_copy\_into \- add <code>mode\_parse</code> parameter which determines how <code>mode</code> is parsed \([https\://github\.com/ansible\-collections/community\.docker/pull/1074](https\://github\.com/ansible\-collections/community\.docker/pull/1074)\)\.
613
614 <a id="v4-5-2"></a>
615 ## v4\.5\.2
616
617 <a id="release-summary-15"></a>
618 ### Release Summary
619
620 Bugfix release\.
621
622 <a id="bugfixes-12"></a>
623 ### Bugfixes
624
625 * docker\_compose\_v2 \- fix version check for <code>assume\_yes</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1054](https\://github\.com/ansible\-collections/community\.docker/pull/1054)\)\.
626 * docker\_compose\_v2 \- use <code>\-\-yes</code> instead of <code>\-y</code> from Docker Compose 2\.34\.0 on \([https\://github\.com/ansible\-collections/community\.docker/pull/1060](https\://github\.com/ansible\-collections/community\.docker/pull/1060)\)\.
627
628 <a id="v4-5-1"></a>
629 ## v4\.5\.1
630
631 <a id="release-summary-16"></a>
632 ### Release Summary
633
634 Bugfix release\.
635
636 <a id="bugfixes-13"></a>
637 ### Bugfixes
638
639 * docker\_compose\_v2 \- rename flag for <code>assume\_yes</code> parameter for <code>docker compose up</code> to <code>\-y</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1054](https\://github\.com/ansible\-collections/community\.docker/pull/1054)\)\.
640
641 <a id="v4-5-0"></a>
642 ## v4\.5\.0
643
644 <a id="release-summary-17"></a>
645 ### Release Summary
646
647 Feature release\.
648
649 <a id="minor-changes-7"></a>
650 ### Minor Changes
651
652 * docker\_compose\_v2 \- add <code>assume\_yes</code> parameter for <code>docker compose up</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1045](https\://github\.com/ansible\-collections/community\.docker/pull/1045)\)\.
653 * docker\_network \- add <code>enable\_ipv4</code> option \([https\://github\.com/ansible\-collections/community\.docker/issues/1047](https\://github\.com/ansible\-collections/community\.docker/issues/1047)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1049](https\://github\.com/ansible\-collections/community\.docker/pull/1049)\)\.
654
655 <a id="v4-4-0"></a>
656 ## v4\.4\.0
657
658 <a id="release-summary-18"></a>
659 ### Release Summary
660
661 Feature and bugfix release\.
662
663 <a id="bugfixes-14"></a>
664 ### Bugfixes
665
666 * docker\_compose\_v2\_run \- the module has a conflict between the type of parameter it expects and the one it tries to sanitize\. Fix removes the label sanitization step because they are already validated by the parameter definition \([https\://github\.com/ansible\-collections/community\.docker/pull/1034](https\://github\.com/ansible\-collections/community\.docker/pull/1034)\)\.
667 * vendored Docker SDK for Python \- do not assume that <code>KeyError</code> is always for <code>ApiVersion</code> when querying version fails \([https\://github\.com/ansible\-collections/community\.docker/issues/1033](https\://github\.com/ansible\-collections/community\.docker/issues/1033)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1034](https\://github\.com/ansible\-collections/community\.docker/pull/1034)\)\.
668
669 <a id="new-modules"></a>
670 ### New Modules
671
672 * community\.docker\.docker\_context\_info \- Retrieve information on Docker contexts for the current user\.
673
674 <a id="v4-3-1"></a>
675 ## v4\.3\.1
676
677 <a id="release-summary-19"></a>
678 ### Release Summary
679
680 Bugfix release\.
681
682 <a id="bugfixes-15"></a>
683 ### Bugfixes
684
685 * Fix label sanitization code to avoid crashes in case of errors \([https\://github\.com/ansible\-collections/community\.docker/issues/1028](https\://github\.com/ansible\-collections/community\.docker/issues/1028)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1029](https\://github\.com/ansible\-collections/community\.docker/pull/1029)\)\.
686
687 <a id="v4-3-0"></a>
688 ## v4\.3\.0
689
690 <a id="release-summary-20"></a>
691 ### Release Summary
692
693 Feature release\.
694
695 <a id="minor-changes-8"></a>
696 ### Minor Changes
697
698 * docker\_compose\_v2\* modules \- determine compose version with <code>docker compose version</code> and only then fall back to <code>docker info</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1021](https\://github\.com/ansible\-collections/community\.docker/pull/1021)\)\.
699
700 <a id="v4-2-0"></a>
701 ## v4\.2\.0
702
703 <a id="release-summary-21"></a>
704 ### Release Summary
705
706 Bugfix and feature release\.
707
708 <a id="minor-changes-9"></a>
709 ### Minor Changes
710
711 * docker\_compose\_v2 \- add <code>ignore\_build\_events</code> option \(default value <code>true</code>\) which allows to \(not\) ignore build events for change detection \([https\://github\.com/ansible\-collections/community\.docker/issues/1005](https\://github\.com/ansible\-collections/community\.docker/issues/1005)\, [https\://github\.com/ansible\-collections/community\.docker/issues/pull/1011](https\://github\.com/ansible\-collections/community\.docker/issues/pull/1011)\)\.
712 * docker\_image\_build \- <code>outputs\[\]\.name</code> can now be a list of strings \([https\://github\.com/ansible\-collections/community\.docker/pull/1006](https\://github\.com/ansible\-collections/community\.docker/pull/1006)\)\.
713 * docker\_image\_build \- the executed command is now returned in the <code>command</code> return value in case of success and some errors \([https\://github\.com/ansible\-collections/community\.docker/pull/1006](https\://github\.com/ansible\-collections/community\.docker/pull/1006)\)\.
714 * docker\_network \- added <code>ingress</code> option \([https\://github\.com/ansible\-collections/community\.docker/pull/999](https\://github\.com/ansible\-collections/community\.docker/pull/999)\)\.
715
716 <a id="bugfixes-16"></a>
717 ### Bugfixes
718
719 * docker\_compose\_v2 \- when using Compose 2\.31\.0 or newer\, revert to the old behavior that image rebuilds\, for example if <code>rebuild\=always</code>\, only result in <code>changed</code> if a container has been restarted \([https\://github\.com/ansible\-collections/community\.docker/issues/1005](https\://github\.com/ansible\-collections/community\.docker/issues/1005)\, [https\://github\.com/ansible\-collections/community\.docker/issues/pull/1011](https\://github\.com/ansible\-collections/community\.docker/issues/pull/1011)\)\.
720 * docker\_image\_build \- work around bug resp\. very unexpected behavior in Docker buildx that overwrites all image names in <code>\-\-output</code> parameters if <code>\-\-tag</code> is provided\, which the module did by default in the past\. The module now only supplies <code>\-\-tag</code> if <code>outputs</code> is empty\. If <code>outputs</code> has entries\, it will add an additional entry with <code>type\=image</code> if no entry of <code>type\=image</code> contains the image name specified by the <code>name</code> and <code>tag</code> options \([https\://github\.com/ansible\-collections/community\.docker/issues/1001](https\://github\.com/ansible\-collections/community\.docker/issues/1001)\, [https\://github\.com/ansible\-collections/community\.docker/pull/1006](https\://github\.com/ansible\-collections/community\.docker/pull/1006)\)\.
721 * docker\_network \- added waiting while container actually disconnect from Swarm network \([https\://github\.com/ansible\-collections/community\.docker/pull/999](https\://github\.com/ansible\-collections/community\.docker/pull/999)\)\.
722 * docker\_network \- containers are only reconnected to a network if they really exist \([https\://github\.com/ansible\-collections/community\.docker/pull/999](https\://github\.com/ansible\-collections/community\.docker/pull/999)\)\.
723 * docker\_network \- enabled \"force\" option in Docker network container disconnect API call \([https\://github\.com/ansible\-collections/community\.docker/pull/999](https\://github\.com/ansible\-collections/community\.docker/pull/999)\)\.
724 * docker\_swarm\_info \- do not crash when finding Swarm jobs if <code>services\=true</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/1003](https\://github\.com/ansible\-collections/community\.docker/issues/1003)\)\.
725
726 <a id="v4-1-0"></a>
727 ## v4\.1\.0
728
729 <a id="release-summary-22"></a>
730 ### Release Summary
731
732 Bugfix and feature release\.
733
734 <a id="minor-changes-10"></a>
735 ### Minor Changes
736
737 * docker\_stack \- allow to add <code>\-\-detach\=false</code> option to <code>docker stack deploy</code> command \([https\://github\.com/ansible\-collections/community\.docker/pull/987](https\://github\.com/ansible\-collections/community\.docker/pull/987)\)\.
738
739 <a id="bugfixes-17"></a>
740 ### Bugfixes
741
742 * docker\_compose\_v2\_exec\, docker\_compose\_v2\_run \- fix missing <code>\-\-env</code> flag while assembling env arguments \([https\://github\.com/ansible\-collections/community\.docker/pull/992](https\://github\.com/ansible\-collections/community\.docker/pull/992)\)\.
743 * docker\_host\_info \- ensure that the module always returns <code>can\_talk\_to\_docker</code>\, and that it provides the correct value even if <code>api\_version</code> is specified \([https\://github\.com/ansible\-collections/community\.docker/issues/993](https\://github\.com/ansible\-collections/community\.docker/issues/993)\, [https\://github\.com/ansible\-collections/community\.docker/pull/995](https\://github\.com/ansible\-collections/community\.docker/pull/995)\)\.
744
745 <a id="v4-0-1"></a>
746 ## v4\.0\.1
747
748 <a id="release-summary-23"></a>
749 ### Release Summary
750
751 Bugfix release\.
752
753 <a id="bugfixes-18"></a>
754 ### Bugfixes
755
756 * docker\_compose\_v2\_run \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
757 * docker\_config \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
758 * docker\_network \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
759 * docker\_node \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
760 * docker\_secret \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
761 * docker\_swarm \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
762 * docker\_swarm\_service \- make sure to sanitize <code>labels</code> and <code>container\_labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
763 * docker\_volume \- make sure to sanitize <code>labels</code> before sending them to the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/985](https\://github\.com/ansible\-collections/community\.docker/pull/985)\)\.
764
765 <a id="v4-0-0"></a>
766 ## v4\.0\.0
767
768 <a id="release-summary-24"></a>
769 ### Release Summary
770
771 Major release with removed deprecated features\.
772
773 <a id="minor-changes-11"></a>
774 ### Minor Changes
775
776 * docker\_compose\_v2 \- add <code>renew\_anon\_volumes</code> parameter for <code>docker compose up</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/977](https\://github\.com/ansible\-collections/community\.docker/pull/977)\)\.
777
778 <a id="breaking-changes--porting-guide-1"></a>
779 ### Breaking Changes / Porting Guide
780
781 * docker\_container \- the default of <code>image\_name\_mismatch</code> changed from <code>ignore</code> to <code>recreate</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/971](https\://github\.com/ansible\-collections/community\.docker/pull/971)\)\.
782
783 <a id="removed-features-previously-deprecated-1"></a>
784 ### Removed Features \(previously deprecated\)
785
786 * The collection no longer supports ansible\-core 2\.11\, 2\.12\, 2\.13\, and 2\.14\. You need ansible\-core 2\.15\.0 or newer to use community\.docker 4\.x\.y \([https\://github\.com/ansible\-collections/community\.docker/pull/971](https\://github\.com/ansible\-collections/community\.docker/pull/971)\)\.
787 * The docker\_compose module has been removed\. Please migrate to community\.docker\.docker\_compose\_v2 \([https\://github\.com/ansible\-collections/community\.docker/pull/971](https\://github\.com/ansible\-collections/community\.docker/pull/971)\)\.
788 * docker\_container \- the <code>ignore\_image</code> option has been removed\. Use <code>image\: ignore</code> in <code>comparisons</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/971](https\://github\.com/ansible\-collections/community\.docker/pull/971)\)\.
789 * docker\_container \- the <code>purge\_networks</code> option has been removed\. Use <code>networks\: strict</code> in <code>comparisons</code> instead and make sure that <code>networks</code> is specified \([https\://github\.com/ansible\-collections/community\.docker/pull/971](https\://github\.com/ansible\-collections/community\.docker/pull/971)\)\.
790 * various modules and plugins \- remove the <code>ssl\_version</code> option \([https\://github\.com/ansible\-collections/community\.docker/pull/971](https\://github\.com/ansible\-collections/community\.docker/pull/971)\)\.
791
792 <a id="v3-13-1"></a>
793 ## v3\.13\.1
794
795 <a id="release-summary-25"></a>
796 ### Release Summary
797
798 Bugfix release\.
799
800 <a id="bugfixes-19"></a>
801 ### Bugfixes
802
803 * docker\_compose\_v2 \- improve parsing of dry\-run image build operations from JSON events \([https\://github\.com/ansible\-collections/community\.docker/issues/975](https\://github\.com/ansible\-collections/community\.docker/issues/975)\, [https\://github\.com/ansible\-collections/community\.docker/pull/976](https\://github\.com/ansible\-collections/community\.docker/pull/976)\)\.
804
805 <a id="v3-13-0"></a>
806 ## v3\.13\.0
807
808 <a id="release-summary-26"></a>
809 ### Release Summary
810
811 Feature release\.
812
813 <a id="new-modules-1"></a>
814 ### New Modules
815
816 * community\.docker\.docker\_compose\_v2\_exec \- Run command in a container of a Compose service\.
817 * community\.docker\.docker\_compose\_v2\_run \- Run command in a new container of a Compose service\.
818
819 <a id="v3-12-2"></a>
820 ## v3\.12\.2
821
822 <a id="release-summary-27"></a>
823 ### Release Summary
824
825 Bugfix release\.
826
827 <a id="bugfixes-20"></a>
828 ### Bugfixes
829
830 * docker\_prune \- fix handling of lists for the filter options \([https\://github\.com/ansible\-collections/community\.docker/issues/961](https\://github\.com/ansible\-collections/community\.docker/issues/961)\, [https\://github\.com/ansible\-collections/community\.docker/pull/966](https\://github\.com/ansible\-collections/community\.docker/pull/966)\)\.
831
832 <a id="v3-12-1"></a>
833 ## v3\.12\.1
834
835 <a id="release-summary-28"></a>
836 ### Release Summary
837
838 Maintenance release with updated documentation and changelog\.
839
840 <a id="deprecated-features"></a>
841 ### Deprecated Features
842
843 * The collection deprecates support for all ansible\-core versions that are currently End of Life\, [according to the ansible\-core support matrix](https\://docs\.ansible\.com/ansible\-core/devel/reference\_appendices/release\_and\_maintenance\.html\#ansible\-core\-support\-matrix)\. This means that the next major release of the collection will no longer support ansible\-core 2\.11\, ansible\-core 2\.12\, ansible\-core 2\.13\, and ansible\-core 2\.14\.
844
845 <a id="v3-12-0"></a>
846 ## v3\.12\.0
847
848 <a id="release-summary-29"></a>
849 ### Release Summary
850
851 Bugfix and feature release\.
852
853 <a id="minor-changes-12"></a>
854 ### Minor Changes
855
856 * docker\, docker\_api connection plugins \- allow to determine the working directory when executing commands with the new <code>working\_dir</code> option \([https\://github\.com/ansible\-collections/community\.docker/pull/943](https\://github\.com/ansible\-collections/community\.docker/pull/943)\)\.
857 * docker\, docker\_api connection plugins \- allow to execute commands with extended privileges with the new <code>privileges</code> option \([https\://github\.com/ansible\-collections/community\.docker/pull/943](https\://github\.com/ansible\-collections/community\.docker/pull/943)\)\.
858 * docker\, docker\_api connection plugins \- allow to pass extra environment variables when executing commands with the new <code>extra\_env</code> option \([https\://github\.com/ansible\-collections/community\.docker/issues/937](https\://github\.com/ansible\-collections/community\.docker/issues/937)\, [https\://github\.com/ansible\-collections/community\.docker/pull/940](https\://github\.com/ansible\-collections/community\.docker/pull/940)\)\.
859 * docker\_compose\_v2\* modules \- support Docker Compose 2\.29\.0\'s <code>json</code> progress writer to avoid having to parse text output \([https\://github\.com/ansible\-collections/community\.docker/pull/931](https\://github\.com/ansible\-collections/community\.docker/pull/931)\)\.
860 * docker\_compose\_v2\_pull \- add new options <code>ignore\_buildable</code>\, <code>include\_deps</code>\, and <code>services</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/941](https\://github\.com/ansible\-collections/community\.docker/issues/941)\, [https\://github\.com/ansible\-collections/community\.docker/pull/942](https\://github\.com/ansible\-collections/community\.docker/pull/942)\)\.
861 * docker\_container \- when creating a container\, directly pass all networks to connect to to the Docker Daemon for API version 1\.44 and newer\. This makes creation more efficient and works around a bug in Docker Daemon that does not use the specified MAC address in at least some cases\, though only for creation \([https\://github\.com/ansible\-collections/community\.docker/pull/933](https\://github\.com/ansible\-collections/community\.docker/pull/933)\)\.
862
863 <a id="bugfixes-21"></a>
864 ### Bugfixes
865
866 * docker\_compose\_v2 \- handle yet another random unstructured error output from pre\-2\.29\.0 Compose versions \([https\://github\.com/ansible\-collections/community\.docker/issues/948](https\://github\.com/ansible\-collections/community\.docker/issues/948)\, [https\://github\.com/ansible\-collections/community\.docker/pull/949](https\://github\.com/ansible\-collections/community\.docker/pull/949)\)\.
867 * docker\_compose\_v2 \- make sure that services provided in <code>services</code> are appended to the command line after <code>\-\-</code> and not before it \([https\://github\.com/ansible\-collections/community\.docker/pull/942](https\://github\.com/ansible\-collections/community\.docker/pull/942)\)\.
868 * docker\_compose\_v2\* modules\, docker\_image\_build \- provide better error message when required fields are not present in <code>docker version</code> or <code>docker info</code> output\. This can happen if Podman is used instead of Docker \([https\://github\.com/ansible\-collections/community\.docker/issues/891](https\://github\.com/ansible\-collections/community\.docker/issues/891)\, [https\://github\.com/ansible\-collections/community\.docker/pull/935](https\://github\.com/ansible\-collections/community\.docker/pull/935)\)\.
869 * docker\_container \- fix idempotency if <code>network\_mode\=default</code> and Docker 26\.1\.0 or later is used\. There was a breaking change in Docker 26\.1\.0 regarding normalization of <code>NetworkMode</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/934](https\://github\.com/ansible\-collections/community\.docker/issues/934)\, [https\://github\.com/ansible\-collections/community\.docker/pull/936](https\://github\.com/ansible\-collections/community\.docker/pull/936)\)\.
870 * docker\_container \- restore behavior of the module from community\.docker 2\.x\.y that passes the first network to the Docker Deamon while creating the container \([https\://github\.com/ansible\-collections/community\.docker/pull/933](https\://github\.com/ansible\-collections/community\.docker/pull/933)\)\.
871 * docker\_image\_build \- fix <code>\-\-output</code> parameter composition for <code>type\=docker</code> and <code>type\=image</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/946](https\://github\.com/ansible\-collections/community\.docker/issues/946)\, [https\://github\.com/ansible\-collections/community\.docker/pull/947](https\://github\.com/ansible\-collections/community\.docker/pull/947)\)\.
872
873 <a id="known-issues-1"></a>
874 ### Known Issues
875
876 * docker\_container \- when specifying a MAC address for a container\'s network\, and the network is attached after container creation \(for example\, due to idempotency checks\)\, the MAC address is at least in some cases ignored by the Docker Daemon \([https\://github\.com/ansible\-collections/community\.docker/pull/933](https\://github\.com/ansible\-collections/community\.docker/pull/933)\)\.
877
878 <a id="v3-11-0"></a>
879 ## v3\.11\.0
880
881 <a id="minor-changes-13"></a>
882 ### Minor Changes
883
884 * docker\_container \- add support for <code>device\_cgroup\_rules</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/910](https\://github\.com/ansible\-collections/community\.docker/pull/910)\)\.
885 * docker\_container \- the new <code>state\=healthy</code> allows to wait for a container to become healthy on startup\. The <code>healthy\_wait\_timeout</code> option allows to configure the maximum time to wait for this to happen \([https\://github\.com/ansible\-collections/community\.docker/issues/890](https\://github\.com/ansible\-collections/community\.docker/issues/890)\, [https\://github\.com/ansible\-collections/community\.docker/pull/921](https\://github\.com/ansible\-collections/community\.docker/pull/921)\)\.
886
887 <a id="bugfixes-22"></a>
888 ### Bugfixes
889
890 * docker\_compose\_v2\* modules \- fix parsing of skipped pull messages for Docker Compose 2\.28\.x \([https\://github\.com/ansible\-collections/community\.docker/issues/911](https\://github\.com/ansible\-collections/community\.docker/issues/911)\, [https\://github\.com/ansible\-collections/community\.docker/pull/916](https\://github\.com/ansible\-collections/community\.docker/pull/916)\)\.
891 * docker\_compose\_v2\*\, docker\_stack\*\, docker\_image\_build modules \- using <code>cli\_context</code> no longer leads to an invalid parameter combination being passed to the corresponding Docker CLI tool\, unless <code>docker\_host</code> is also provided\. Combining <code>cli\_context</code> and <code>docker\_host</code> is no longer allowed \([https\://github\.com/ansible\-collections/community\.docker/issues/892](https\://github\.com/ansible\-collections/community\.docker/issues/892)\, [https\://github\.com/ansible\-collections/community\.docker/pull/895](https\://github\.com/ansible\-collections/community\.docker/pull/895)\)\.
892 * docker\_container \- fix possible infinite loop if <code>removal\_wait\_timeout</code> is set \([https\://github\.com/ansible\-collections/community\.docker/pull/922](https\://github\.com/ansible\-collections/community\.docker/pull/922)\)\.
893 * vendored Docker SDK for Python \- use <code>LooseVersion</code> instead of <code>StrictVersion</code> to compare urllib3 versions\. This is needed for development versions \([https\://github\.com/ansible\-collections/community\.docker/pull/902](https\://github\.com/ansible\-collections/community\.docker/pull/902)\)\.
894
895 <a id="v3-10-4"></a>
896 ## v3\.10\.4
897
898 <a id="release-summary-30"></a>
899 ### Release Summary
900
901 Bugfix release\.
902
903 <a id="bugfixes-23"></a>
904 ### Bugfixes
905
906 * docker\_compose \- make sure that the module uses the <code>api\_version</code> parameter \([https\://github\.com/ansible\-collections/community\.docker/pull/881](https\://github\.com/ansible\-collections/community\.docker/pull/881)\)\.
907 * docker\_compose\_v2\* modules \- there was no check to make sure that one of <code>project\_src</code> and <code>definition</code> is provided\. The modules crashed if none were provided \([https\://github\.com/ansible\-collections/community\.docker/issues/885](https\://github\.com/ansible\-collections/community\.docker/issues/885)\, [https\://github\.com/ansible\-collections/community\.docker/pull/886](https\://github\.com/ansible\-collections/community\.docker/pull/886)\)\.
908
909 <a id="v3-10-3"></a>
910 ## v3\.10\.3
911
912 <a id="release-summary-31"></a>
913 ### Release Summary
914
915 Bugfix release\.
916
917 <a id="bugfixes-24"></a>
918 ### Bugfixes
919
920 * docker and nsenter connection plugins\, docker\_container\_exec module \- avoid using the deprecated <code>ansible\.module\_utils\.compat\.selectors</code> module util with Python 3 \([https\://github\.com/ansible\-collections/community\.docker/issues/870](https\://github\.com/ansible\-collections/community\.docker/issues/870)\, [https\://github\.com/ansible\-collections/community\.docker/pull/871](https\://github\.com/ansible\-collections/community\.docker/pull/871)\)\.
921
922 <a id="v3-10-2"></a>
923 ## v3\.10\.2
924
925 <a id="release-summary-32"></a>
926 ### Release Summary
927
928 Bugfix release\.
929
930 <a id="bugfixes-25"></a>
931 ### Bugfixes
932
933 * vendored Docker SDK for Python \- include a fix requests 2\.32\.2\+ compatibility \([https\://github\.com/ansible\-collections/community\.docker/issues/860](https\://github\.com/ansible\-collections/community\.docker/issues/860)\, [https\://github\.com/psf/requests/issues/6707](https\://github\.com/psf/requests/issues/6707)\, [https\://github\.com/ansible\-collections/community\.docker/pull/864](https\://github\.com/ansible\-collections/community\.docker/pull/864)\)\.
934
935 <a id="v3-10-1"></a>
936 ## v3\.10\.1
937
938 <a id="release-summary-33"></a>
939 ### Release Summary
940
941 Hotfix release for requests 2\.32\.0 compatibility\.
942
943 <a id="bugfixes-26"></a>
944 ### Bugfixes
945
946 * vendored Docker SDK for Python \- include a hotfix for requests 2\.32\.0 compatibility \([https\://github\.com/ansible\-collections/community\.docker/issues/860](https\://github\.com/ansible\-collections/community\.docker/issues/860)\, [https\://github\.com/docker/docker\-py/issues/3256](https\://github\.com/docker/docker\-py/issues/3256)\, [https\://github\.com/ansible\-collections/community\.docker/pull/861](https\://github\.com/ansible\-collections/community\.docker/pull/861)\)\.
947
948 <a id="known-issues-2"></a>
949 ### Known Issues
950
951 * Please note that the fix for requests 2\.32\.0 included in community\.docker 3\.10\.1 only
952 fixes problems with the <em>vendored</em> Docker SDK for Python code\. Modules and plugins that
953 use Docker SDK for Python can still fail due to the SDK currently being incompatible
954 with requests 2\.32\.0\.
955
956 If you still experience problems with requests 2\.32\.0\, such as error messages like
957 <code>Not supported URL scheme http\+docker</code>\, please restrict requests to <code>\<2\.32\.0</code>\.
958
959 <a id="v3-10-0"></a>
960 ## v3\.10\.0
961
962 <a id="release-summary-34"></a>
963 ### Release Summary
964
965 Feature release\.
966
967 <a id="minor-changes-14"></a>
968 ### Minor Changes
969
970 * docker\_container \- adds <code>healthcheck\.start\_interval</code> to support healthcheck start interval setting on containers \([https\://github\.com/ansible\-collections/community\.docker/pull/848](https\://github\.com/ansible\-collections/community\.docker/pull/848)\)\.
971 * docker\_container \- adds <code>healthcheck\.test\_cli\_compatible</code> to allow omit test option on containers without remove existing image test \([https\://github\.com/ansible\-collections/community\.docker/pull/847](https\://github\.com/ansible\-collections/community\.docker/pull/847)\)\.
972 * docker\_image\_build \- add <code>outputs</code> option to allow configuring outputs for the build \([https\://github\.com/ansible\-collections/community\.docker/pull/852](https\://github\.com/ansible\-collections/community\.docker/pull/852)\)\.
973 * docker\_image\_build \- add <code>secrets</code> option to allow passing secrets to the build \([https\://github\.com/ansible\-collections/community\.docker/pull/852](https\://github\.com/ansible\-collections/community\.docker/pull/852)\)\.
974 * docker\_image\_build \- allow <code>platform</code> to be a list of platforms instead of only a single platform for multi\-platform builds \([https\://github\.com/ansible\-collections/community\.docker/pull/852](https\://github\.com/ansible\-collections/community\.docker/pull/852)\)\.
975 * docker\_network \- adds <code>config\_only</code> and <code>config\_from</code> to support creating and using config only networks \([https\://github\.com/ansible\-collections/community\.docker/issues/395](https\://github\.com/ansible\-collections/community\.docker/issues/395)\)\.
976 * docker\_prune \- add new options <code>builder\_cache\_all</code>\, <code>builder\_cache\_filters</code>\, and <code>builder\_cache\_keep\_storage</code>\, and a new return value <code>builder\_cache\_caches\_deleted</code> for pruning build caches \([https\://github\.com/ansible\-collections/community\.docker/issues/844](https\://github\.com/ansible\-collections/community\.docker/issues/844)\, [https\://github\.com/ansible\-collections/community\.docker/issues/845](https\://github\.com/ansible\-collections/community\.docker/issues/845)\)\.
977 * docker\_swarm\_service \- adds <code>sysctls</code> to support sysctl settings on swarm services \([https\://github\.com/ansible\-collections/community\.docker/issues/190](https\://github\.com/ansible\-collections/community\.docker/issues/190)\)\.
978
979 <a id="deprecated-features-1"></a>
980 ### Deprecated Features
981
982 * docker\_compose \- the Docker Compose v1 module is deprecated and will be removed from community\.docker 4\.0\.0\. Please migrate to the <code>community\.docker\.docker\_compose\_v2</code> module\, which works with Docker Compose v2 \([https\://github\.com/ansible\-collections/community\.docker/issues/823](https\://github\.com/ansible\-collections/community\.docker/issues/823)\, [https\://github\.com/ansible\-collections/community\.docker/pull/833](https\://github\.com/ansible\-collections/community\.docker/pull/833)\)\.
983 * various modules and plugins \- the <code>ssl\_version</code> option has been deprecated and will be removed from community\.docker 4\.0\.0\. It has already been removed from Docker SDK for Python 7\.0\.0\, and was only necessary in the past to work around SSL/TLS issues \([https\://github\.com/ansible\-collections/community\.docker/pull/853](https\://github\.com/ansible\-collections/community\.docker/pull/853)\)\.
984
985 <a id="v3-9-0"></a>
986 ## v3\.9\.0
987
988 <a id="release-summary-35"></a>
989 ### Release Summary
990
991 Bugfix and feature release\.
992
993 <a id="minor-changes-15"></a>
994 ### Minor Changes
995
996 * The EE requirements now include PyYAML\, since the <code>docker\_compose\_v2\*</code> modules depend on it when the <code>definition</code> option is used\. This should not have a noticable effect on generated EEs since ansible\-core itself depends on PyYAML as well\, and ansible\-builder explicitly ignores this dependency \([https\://github\.com/ansible\-collections/community\.docker/pull/832](https\://github\.com/ansible\-collections/community\.docker/pull/832)\)\.
997 * docker\_compose\_v2\* \- the new option <code>check\_files\_existing</code> allows to disable the check for one of the files <code>compose\.yaml</code>\, <code>compose\.yml</code>\, <code>docker\-compose\.yaml</code>\, and <code>docker\-compose\.yml</code> in <code>project\_src</code> if <code>files</code> is not specified\. This is necessary if a non\-standard compose filename is specified through other means\, like the <code>COMPOSE\_FILE</code> environment variable \([https\://github\.com/ansible\-collections/community\.docker/issues/838](https\://github\.com/ansible\-collections/community\.docker/issues/838)\, [https\://github\.com/ansible\-collections/community\.docker/pull/839](https\://github\.com/ansible\-collections/community\.docker/pull/839)\)\.
998 * docker\_compose\_v2\* modules \- allow to provide an inline definition of the compose content instead of having to provide a <code>project\_src</code> directory with the compose file written into it \([https\://github\.com/ansible\-collections/community\.docker/issues/829](https\://github\.com/ansible\-collections/community\.docker/issues/829)\, [https\://github\.com/ansible\-collections/community\.docker/pull/832](https\://github\.com/ansible\-collections/community\.docker/pull/832)\)\.
999 * vendored Docker SDK for Python \- remove unused code that relies on functionality deprecated in Python 3\.12 \([https\://github\.com/ansible\-collections/community\.docker/pull/834](https\://github\.com/ansible\-collections/community\.docker/pull/834)\)\.
1000
1001 <a id="bugfixes-27"></a>
1002 ### Bugfixes
1003
1004 * docker\_compose\_v2\* \- allow <code>project\_src</code> to be a relative path\, by converting it to an absolute path before using it \([https\://github\.com/ansible\-collections/community\.docker/issues/827](https\://github\.com/ansible\-collections/community\.docker/issues/827)\, [https\://github\.com/ansible\-collections/community\.docker/pull/828](https\://github\.com/ansible\-collections/community\.docker/pull/828)\)\.
1005 * docker\_compose\_v2\* modules \- abort with a nice error message instead of crash when the Docker Compose CLI plugin version is <code>dev</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/825](https\://github\.com/ansible\-collections/community\.docker/issues/825)\, [https\://github\.com/ansible\-collections/community\.docker/pull/826](https\://github\.com/ansible\-collections/community\.docker/pull/826)\)\.
1006 * inventory plugins \- add unsafe wrapper to avoid marking strings that do not contain <code>\{</code> or <code>\}</code> as unsafe\, to work around a bug in AWX \([https\://github\.com/ansible\-collections/community\.docker/pull/835](https\://github\.com/ansible\-collections/community\.docker/pull/835)\)\.
1007
1008 <a id="v3-8-1"></a>
1009 ## v3\.8\.1
1010
1011 <a id="release-summary-36"></a>
1012 ### Release Summary
1013
1014 Bugfix release
1015
1016 <a id="security-fixes"></a>
1017 ### Security Fixes
1018
1019 * docker\_containers\, docker\_machine\, and docker\_swarm inventory plugins \- make sure all data received from the Docker daemon / Docker machine is marked as unsafe\, so remote code execution by obtaining texts that can be evaluated as templates is not possible \([https\://www\.die\-welt\.net/2024/03/remote\-code\-execution\-in\-ansible\-dynamic\-inventory\-plugins/](https\://www\.die\-welt\.net/2024/03/remote\-code\-execution\-in\-ansible\-dynamic\-inventory\-plugins/)\, [https\://github\.com/ansible\-collections/community\.docker/pull/815](https\://github\.com/ansible\-collections/community\.docker/pull/815)\)\.
1020
1021 <a id="bugfixes-28"></a>
1022 ### Bugfixes
1023
1024 * docker\_compose\_v2 \- do not fail when non\-fatal errors occur\. This can happen when pulling an image fails\, but then the image can be built for another service\. Docker Compose emits an error in that case\, but <code>docker compose up</code> still completes successfully \([https\://github\.com/ansible\-collections/community\.docker/issues/807](https\://github\.com/ansible\-collections/community\.docker/issues/807)\, [https\://github\.com/ansible\-collections/community\.docker/pull/810](https\://github\.com/ansible\-collections/community\.docker/pull/810)\, [https\://github\.com/ansible\-collections/community\.docker/pull/811](https\://github\.com/ansible\-collections/community\.docker/pull/811)\)\.
1025 * docker\_compose\_v2\* modules \- correctly parse <code>Warning</code> events emitted by Docker Compose \([https\://github\.com/ansible\-collections/community\.docker/issues/807](https\://github\.com/ansible\-collections/community\.docker/issues/807)\, [https\://github\.com/ansible\-collections/community\.docker/pull/811](https\://github\.com/ansible\-collections/community\.docker/pull/811)\)\.
1026 * docker\_compose\_v2\* modules \- parse <code>logfmt</code> warnings emitted by Docker Compose \([https\://github\.com/ansible\-collections/community\.docker/issues/787](https\://github\.com/ansible\-collections/community\.docker/issues/787)\, [https\://github\.com/ansible\-collections/community\.docker/pull/811](https\://github\.com/ansible\-collections/community\.docker/pull/811)\)\.
1027 * docker\_compose\_v2\_pull \- fixing idempotence by checking actual pull progress events instead of service\-level pull request when <code>policy\=always</code>\. This stops the module from reporting <code>changed\=true</code> if no actual change happened when pulling\. In check mode\, it has to assume that a change happens though \([https\://github\.com/ansible\-collections/community\.docker/issues/813](https\://github\.com/ansible\-collections/community\.docker/issues/813)\, [https\://github\.com/ansible\-collections/community\.docker/pull/814](https\://github\.com/ansible\-collections/community\.docker/pull/814)\)\.
1028
1029 <a id="v3-8-0"></a>
1030 ## v3\.8\.0
1031
1032 <a id="release-summary-37"></a>
1033 ### Release Summary
1034
1035 Bugfix and feature release\.
1036
1037 <a id="minor-changes-16"></a>
1038 ### Minor Changes
1039
1040 * docker\_compose\_v2 \- allow to wait until containers are running/health when running <code>docker compose up</code> with the new <code>wait</code> option \([https\://github\.com/ansible\-collections/community\.docker/issues/794](https\://github\.com/ansible\-collections/community\.docker/issues/794)\, [https\://github\.com/ansible\-collections/community\.docker/pull/796](https\://github\.com/ansible\-collections/community\.docker/pull/796)\)\.
1041 * docker\_container \- the <code>pull\_check\_mode\_behavior</code> option now allows to control the module\'s behavior in check mode when <code>pull\=always</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/792](https\://github\.com/ansible\-collections/community\.docker/issues/792)\, [https\://github\.com/ansible\-collections/community\.docker/pull/797](https\://github\.com/ansible\-collections/community\.docker/pull/797)\)\.
1042 * docker\_container \- the <code>pull</code> option now accepts the three values <code>never</code>\, <code>missing\_image</code> \(default\)\, and <code>never</code>\, next to the previously valid values <code>true</code> \(equivalent to <code>always</code>\) and <code>false</code> \(equivalent to <code>missing\_image</code>\)\. This allows the equivalent to <code>\-\-pull\=never</code> from the Docker command line \([https\://github\.com/ansible\-collections/community\.docker/issues/783](https\://github\.com/ansible\-collections/community\.docker/issues/783)\, [https\://github\.com/ansible\-collections/community\.docker/pull/797](https\://github\.com/ansible\-collections/community\.docker/pull/797)\)\.
1043
1044 <a id="bugfixes-29"></a>
1045 ### Bugfixes
1046
1047 * docker\_compose\_v2 \- do not consider a <code>Waiting</code> event as an action/change \([https\://github\.com/ansible\-collections/community\.docker/pull/804](https\://github\.com/ansible\-collections/community\.docker/pull/804)\)\.
1048 * docker\_compose\_v2 \- do not treat service\-level pull events as changes to avoid incorrect <code>changed\=true</code> return value of <code>pull\=always</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/802](https\://github\.com/ansible\-collections/community\.docker/issues/802)\, [https\://github\.com/ansible\-collections/community\.docker/pull/803](https\://github\.com/ansible\-collections/community\.docker/pull/803)\)\.
1049 * docker\_compose\_v2\, docker\_compose\_v2\_pull \- fix parsing of pull messages for Docker Compose 2\.20\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/785](https\://github\.com/ansible\-collections/community\.docker/issues/785)\, [https\://github\.com/ansible\-collections/community\.docker/pull/786](https\://github\.com/ansible\-collections/community\.docker/pull/786)\)\.
1050
1051 <a id="v3-7-0"></a>
1052 ## v3\.7\.0
1053
1054 <a id="release-summary-38"></a>
1055 ### Release Summary
1056
1057 Bugfix and feature release\.
1058
1059 <a id="minor-changes-17"></a>
1060 ### Minor Changes
1061
1062 * docker\_compose\_v2 \- add <code>scale</code> option to allow to explicitly scale services \([https\://github\.com/ansible\-collections/community\.docker/pull/776](https\://github\.com/ansible\-collections/community\.docker/pull/776)\)\.
1063 * docker\_compose\_v2\, docker\_compose\_v2\_pull \- support <code>files</code> parameter to specify multiple Compose files \([https\://github\.com/ansible\-collections/community\.docker/issues/772](https\://github\.com/ansible\-collections/community\.docker/issues/772)\, [https\://github\.com/ansible\-collections/community\.docker/pull/775](https\://github\.com/ansible\-collections/community\.docker/pull/775)\)\.
1064
1065 <a id="bugfixes-30"></a>
1066 ### Bugfixes
1067
1068 * docker\_compose\_v2 \- properly parse dry\-run build events from <code>stderr</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/778](https\://github\.com/ansible\-collections/community\.docker/issues/778)\, [https\://github\.com/ansible\-collections/community\.docker/pull/779](https\://github\.com/ansible\-collections/community\.docker/pull/779)\)\.
1069 * docker\_compose\_v2\_pull \- the module was documented as part of the <code>community\.docker\.docker</code> action group\, but was not actually part of it\. That has now been fixed \([https\://github\.com/ansible\-collections/community\.docker/pull/773](https\://github\.com/ansible\-collections/community\.docker/pull/773)\)\.
1070
1071 <a id="new-modules-2"></a>
1072 ### New Modules
1073
1074 * community\.docker\.docker\_image\_export \- Export \(archive\) Docker images
1075
1076 <a id="v3-6-0"></a>
1077 ## v3\.6\.0
1078
1079 <a id="release-summary-39"></a>
1080 ### Release Summary
1081
1082 Bugfix and feature release\.
1083
1084 The collection now includes a bunch of new <code>docker\_image\_\*</code> modules that move features out of the
1085 rather complex <code>docker\_image</code> module\. These new modules are easier to use and can better declare whether
1086 they support check mode\, diff mode\, or none of them\.
1087
1088 This version also features modules that support the Docker CLI plugins <code>buildx</code> and <code>compose</code>\.
1089 The <code>docker\_image\_build</code> module uses the <code>docker buildx</code> command under the hood\, and the <code>docker\_compose\_v2</code>
1090 and <code>docker\_compose\_v2\_pull</code> modules uses the <code>docker compose</code> command\. All these modules use the Docker CLI
1091 instead of directly talking to the API\. The modules support mostly the same interface as the API based modules\,
1092 so the main difference is that instead of some Python requirements\, they depend on the Docker CLI tool <code>docker</code>\.
1093
1094 <a id="major-changes"></a>
1095 ### Major Changes
1096
1097 * The <code>community\.docker</code> collection now depends on the <code>community\.library\_inventory\_filtering\_v1</code> collection\. This utility collection provides host filtering functionality for inventory plugins\. If you use the Ansible community package\, both collections are included and you do not have to do anything special\. If you install the collection with <code>ansible\-galaxy collection install</code>\, it will be installed automatically\. If you install the collection by copying the files of the collection to a place where ansible\-core can find it\, for example by cloning the git repository\, you need to make sure that you also have to install the dependency if you are using the inventory plugins \([https\://github\.com/ansible\-collections/community\.docker/pull/698](https\://github\.com/ansible\-collections/community\.docker/pull/698)\)\.
1098
1099 <a id="minor-changes-18"></a>
1100 ### Minor Changes
1101
1102 * The <code>ca\_cert</code> option available to almost all modules and plugins has been renamed to <code>ca\_path</code>\. The name <code>ca\_path</code> is also used for similar options in ansible\-core and other collections\. The old name has been added as an alias and can still be used \([https\://github\.com/ansible\-collections/community\.docker/pull/744](https\://github\.com/ansible\-collections/community\.docker/pull/744)\)\.
1103 * The <code>docker\_stack\*</code> modules now use the common CLI\-based module code added for the <code>docker\_image\_build</code> and <code>docker\_compose\_v2</code> modules\. This means that the modules now have various more configuration options with respect to talking to the Docker Daemon\, and now also are part of the <code>community\.docker\.docker</code> and <code>docker</code> module default groups \([https\://github\.com/ansible\-collections/community\.docker/pull/745](https\://github\.com/ansible\-collections/community\.docker/pull/745)\)\.
1104 * docker\_container \- add <code>networks\[\]\.mac\_address</code> option for Docker API 1\.44\+\. Note that Docker API 1\.44 no longer uses the global <code>mac\_address</code> option\, this new option is the only way to set the MAC address for a container \([https\://github\.com/ansible\-collections/community\.docker/pull/763](https\://github\.com/ansible\-collections/community\.docker/pull/763)\)\.
1105 * docker\_image \- allow to specify labels and <code>/dev/shm</code> size when building images \([https\://github\.com/ansible\-collections/community\.docker/issues/726](https\://github\.com/ansible\-collections/community\.docker/issues/726)\, [https\://github\.com/ansible\-collections/community\.docker/pull/727](https\://github\.com/ansible\-collections/community\.docker/pull/727)\)\.
1106 * docker\_image \- allow to specify memory size and swap memory size in other units than bytes \([https\://github\.com/ansible\-collections/community\.docker/pull/727](https\://github\.com/ansible\-collections/community\.docker/pull/727)\)\.
1107 * inventory plugins \- add <code>filter</code> option which allows to include and exclude hosts based on Jinja2 conditions \([https\://github\.com/ansible\-collections/community\.docker/pull/698](https\://github\.com/ansible\-collections/community\.docker/pull/698)\, [https\://github\.com/ansible\-collections/community\.docker/issues/610](https\://github\.com/ansible\-collections/community\.docker/issues/610)\)\.
1108
1109 <a id="bugfixes-31"></a>
1110 ### Bugfixes
1111
1112 * Use <code>unix\:///var/run/docker\.sock</code> instead of the legacy <code>unix\://var/run/docker\.sock</code> as default for <code>docker\_host</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/736](https\://github\.com/ansible\-collections/community\.docker/pull/736)\)\.
1113 * docker\_image \- fix archiving idempotency with Docker API 1\.44 or later \([https\://github\.com/ansible\-collections/community\.docker/pull/765](https\://github\.com/ansible\-collections/community\.docker/pull/765)\)\.
1114
1115 <a id="new-modules-3"></a>
1116 ### New Modules
1117
1118 * community\.docker\.docker\_compose\_v2 \- Manage multi\-container Docker applications with Docker Compose CLI plugin
1119 * community\.docker\.docker\_compose\_v2\_pull \- Pull a Docker compose project
1120 * community\.docker\.docker\_image\_build \- Build Docker images using Docker buildx
1121 * community\.docker\.docker\_image\_pull \- Pull Docker images from registries
1122 * community\.docker\.docker\_image\_push \- Push Docker images to registries
1123 * community\.docker\.docker\_image\_remove \- Remove Docker images
1124 * community\.docker\.docker\_image\_tag \- Tag Docker images with new names and/or tags
1125
1126 <a id="v3-5-0"></a>
1127 ## v3\.5\.0
1128
1129 <a id="release-summary-40"></a>
1130 ### Release Summary
1131
1132 Bugfix and feature release\.
1133
1134 <a id="minor-changes-19"></a>
1135 ### Minor Changes
1136
1137 * docker\_container \- implement better <code>platform</code> string comparisons to improve idempotency \([https\://github\.com/ansible\-collections/community\.docker/issues/654](https\://github\.com/ansible\-collections/community\.docker/issues/654)\, [https\://github\.com/ansible\-collections/community\.docker/pull/705](https\://github\.com/ansible\-collections/community\.docker/pull/705)\)\.
1138 * docker\_container \- internal refactorings which allow comparisons to use more information like details of the current image or the Docker host config \([https\://github\.com/ansible\-collections/community\.docker/pull/713](https\://github\.com/ansible\-collections/community\.docker/pull/713)\)\.
1139
1140 <a id="deprecated-features-2"></a>
1141 ### Deprecated Features
1142
1143 * docker\_container \- the default <code>ignore</code> for the <code>image\_name\_mismatch</code> parameter has been deprecated and will switch to <code>recreate</code> in community\.docker 4\.0\.0\. A deprecation warning will be printed in situations where the default value is used and where a behavior would change once the default changes \([https\://github\.com/ansible\-collections/community\.docker/pull/703](https\://github\.com/ansible\-collections/community\.docker/pull/703)\)\.
1144
1145 <a id="bugfixes-32"></a>
1146 ### Bugfixes
1147
1148 * modules and plugins using the Docker SDK for Python \- remove <code>ssl\_version</code> from the parameters passed to Docker SDK for Python 7\.0\.0\+\. Explicitly fail with a nicer error message if it was explicitly set in this case \([https\://github\.com/ansible\-collections/community\.docker/pull/715](https\://github\.com/ansible\-collections/community\.docker/pull/715)\)\.
1149 * modules and plugins using the Docker SDK for Python \- remove <code>tls\_hostname</code> from the parameters passed to Docker SDK for Python 7\.0\.0\+\. Explicitly fail with a nicer error message if it was explicitly set in this case \([https\://github\.com/ansible\-collections/community\.docker/pull/721](https\://github\.com/ansible\-collections/community\.docker/pull/721)\)\.
1150 * vendored Docker SDK for Python \- avoid passing on <code>ssl\_version</code> and <code>tls\_hostname</code> if they were not provided by the user\. Remove dead code\. \([https\://github\.com/ansible\-collections/community\.docker/pull/722](https\://github\.com/ansible\-collections/community\.docker/pull/722)\)\.
1151
1152 <a id="v3-4-11"></a>
1153 ## v3\.4\.11
1154
1155 <a id="release-summary-41"></a>
1156 ### Release Summary
1157
1158 Bugfix release\.
1159
1160 <a id="bugfixes-33"></a>
1161 ### Bugfixes
1162
1163 * docker\_volume \- fix crash caused by accessing an empty dictionary\. The <code>has\_different\_config\(\)</code> was raising an <code>AttributeError</code> because the <code>self\.existing\_volume\[\"Labels\"\]</code> dictionary was <code>None</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/702](https\://github\.com/ansible\-collections/community\.docker/pull/702)\)\.
1164
1165 <a id="v3-4-10"></a>
1166 ## v3\.4\.10
1167
1168 <a id="release-summary-42"></a>
1169 ### Release Summary
1170
1171 Bugfix release\.
1172
1173 <a id="bugfixes-34"></a>
1174 ### Bugfixes
1175
1176 * docker\_swarm \- make init and join operations work again with Docker SDK for Python before 4\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/695](https\://github\.com/ansible\-collections/community\.docker/issues/695)\, [https\://github\.com/ansible\-collections/community\.docker/pull/696](https\://github\.com/ansible\-collections/community\.docker/pull/696)\)\.
1177
1178 <a id="v3-4-9"></a>
1179 ## v3\.4\.9
1180
1181 <a id="release-summary-43"></a>
1182 ### Release Summary
1183
1184 Maintenance release with updated documentation and vendored Docker SDK for Python code\.
1185
1186 <a id="bugfixes-35"></a>
1187 ### Bugfixes
1188
1189 * vendored Docker SDK for Python code \- cherry\-pick changes from the Docker SDK for Python code to align code\. These changes should not affect the parts used by the collection\'s code \([https\://github\.com/ansible\-collections/community\.docker/pull/694](https\://github\.com/ansible\-collections/community\.docker/pull/694)\)\.
1190
1191 <a id="v3-4-8"></a>
1192 ## v3\.4\.8
1193
1194 <a id="release-summary-44"></a>
1195 ### Release Summary
1196
1197 Maintenance release with updated documentation\.
1198
1199 From this version on\, community\.docker is using the new [Ansible semantic markup](https\://docs\.ansible\.com/ansible/devel/dev\_guide/developing\_modules\_documenting\.html\#semantic\-markup\-within\-module\-documentation)
1200 in its documentation\. If you look at documentation with the ansible\-doc CLI tool
1201 from ansible\-core before 2\.15\, please note that it does not render the markup
1202 correctly\. You should be still able to read it in most cases\, but you need
1203 ansible\-core 2\.15 or later to see it as it is intended\. Alternatively you can
1204 look at [the devel docsite](https\://docs\.ansible\.com/ansible/devel/collections/community/docker/)
1205 for the rendered HTML version of the documentation of the latest release\.
1206
1207 <a id="known-issues-3"></a>
1208 ### Known Issues
1209
1210 * Ansible markup will show up in raw form on ansible\-doc text output for ansible\-core before 2\.15\. If you have trouble deciphering the documentation markup\, please upgrade to ansible\-core 2\.15 \(or newer\)\, or read the HTML documentation on [https\://docs\.ansible\.com/ansible/devel/collections/community/docker/](https\://docs\.ansible\.com/ansible/devel/collections/community/docker/)\.
1211
1212 <a id="v3-4-7"></a>
1213 ## v3\.4\.7
1214
1215 <a id="release-summary-45"></a>
1216 ### Release Summary
1217
1218 Bugfix release\.
1219
1220 <a id="bugfixes-36"></a>
1221 ### Bugfixes
1222
1223 * docker\_swarm\_info \- if <code>service\=true</code> is used\, do not crash when a service without an endpoint spec is encountered \([https\://github\.com/ansible\-collections/community\.docker/issues/636](https\://github\.com/ansible\-collections/community\.docker/issues/636)\, [https\://github\.com/ansible\-collections/community\.docker/pull/637](https\://github\.com/ansible\-collections/community\.docker/pull/637)\)\.
1224
1225 <a id="v3-4-6"></a>
1226 ## v3\.4\.6
1227
1228 <a id="release-summary-46"></a>
1229 ### Release Summary
1230
1231 Bugfix release with documentation warnings about using certain functionality when connecting to the Docker daemon with TCP TLS\.
1232
1233 <a id="bugfixes-37"></a>
1234 ### Bugfixes
1235
1236 * socket\_handler module utils \- make sure this fully works when Docker SDK for Python is not available \([https\://github\.com/ansible\-collections/community\.docker/pull/620](https\://github\.com/ansible\-collections/community\.docker/pull/620)\)\.
1237 * vendored Docker SDK for Python code \- fix for errors on pipe close in Windows \([https\://github\.com/ansible\-collections/community\.docker/pull/619](https\://github\.com/ansible\-collections/community\.docker/pull/619)\)\.
1238 * vendored Docker SDK for Python code \- respect timeouts on Windows named pipes \([https\://github\.com/ansible\-collections/community\.docker/pull/619](https\://github\.com/ansible\-collections/community\.docker/pull/619)\)\.
1239 * vendored Docker SDK for Python code \- use <code>poll\(\)</code> instead of <code>select\(\)</code> except on Windows \([https\://github\.com/ansible\-collections/community\.docker/pull/619](https\://github\.com/ansible\-collections/community\.docker/pull/619)\)\.
1240
1241 <a id="known-issues-4"></a>
1242 ### Known Issues
1243
1244 * docker\_api connection plugin \- does <strong>not work with TCP TLS sockets</strong>\! This is caused by the inability to send an <code>close\_notify</code> TLS alert without closing the connection with Python\'s <code>SSLSocket</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/605](https\://github\.com/ansible\-collections/community\.docker/issues/605)\, [https\://github\.com/ansible\-collections/community\.docker/pull/621](https\://github\.com/ansible\-collections/community\.docker/pull/621)\)\.
1245 * docker\_container\_exec \- does <strong>not work with TCP TLS sockets</strong> when the <code>stdin</code> option is used\! This is caused by the inability to send an <code>close\_notify</code> TLS alert without closing the connection with Python\'s <code>SSLSocket</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/605](https\://github\.com/ansible\-collections/community\.docker/issues/605)\, [https\://github\.com/ansible\-collections/community\.docker/pull/621](https\://github\.com/ansible\-collections/community\.docker/pull/621)\)\.
1246
1247 <a id="v3-4-5"></a>
1248 ## v3\.4\.5
1249
1250 <a id="release-summary-47"></a>
1251 ### Release Summary
1252
1253 Maintenance release which adds compatibility with requests 2\.29\.0 and 2\.30\.0 and urllib3 2\.0\.
1254
1255 <a id="bugfixes-38"></a>
1256 ### Bugfixes
1257
1258 * Make vendored Docker SDK for Python code compatible with requests 2\.29\.0 and urllib3 2\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/613](https\://github\.com/ansible\-collections/community\.docker/pull/613)\)\.
1259
1260 <a id="v3-4-4"></a>
1261 ## v3\.4\.4
1262
1263 <a id="release-summary-48"></a>
1264 ### Release Summary
1265
1266 Maintenance release with updated EE requirements and updated documentation\.
1267
1268 <a id="minor-changes-20"></a>
1269 ### Minor Changes
1270
1271 * Restrict requests to versions before 2\.29\.0\, and urllib3 to versions before 2\.0\.0\. This is necessary until the vendored code from Docker SDK for Python has been fully adjusted to work with a feature of urllib3 that is used since requests 2\.29\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/611](https\://github\.com/ansible\-collections/community\.docker/issues/611)\, [https\://github\.com/ansible\-collections/community\.docker/pull/612](https\://github\.com/ansible\-collections/community\.docker/pull/612)\)\.
1272
1273 <a id="known-issues-5"></a>
1274 ### Known Issues
1275
1276 * The modules and plugins using the vendored code from Docker SDK for Python currently do not work with requests 2\.29\.0 and/or urllib3 2\.0\.0\. The same is currently true for the latest version of Docker SDK for Python itself \([https\://github\.com/ansible\-collections/community\.docker/issues/611](https\://github\.com/ansible\-collections/community\.docker/issues/611)\, [https\://github\.com/ansible\-collections/community\.docker/pull/612](https\://github\.com/ansible\-collections/community\.docker/pull/612)\)\.
1277
1278 <a id="v3-4-3"></a>
1279 ## v3\.4\.3
1280
1281 <a id="release-summary-49"></a>
1282 ### Release Summary
1283
1284 Maintenance release with improved documentation\.
1285
1286 <a id="v3-4-2"></a>
1287 ## v3\.4\.2
1288
1289 <a id="release-summary-50"></a>
1290 ### Release Summary
1291
1292 Bugfix release\.
1293
1294 <a id="bugfixes-39"></a>
1295 ### Bugfixes
1296
1297 * docker\_prune \- return correct value for <code>changed</code>\. So far the module always claimed that nothing changed \([https\://github\.com/ansible\-collections/community\.docker/pull/593](https\://github\.com/ansible\-collections/community\.docker/pull/593)\)\.
1298
1299 <a id="v3-4-1"></a>
1300 ## v3\.4\.1
1301
1302 <a id="release-summary-51"></a>
1303 ### Release Summary
1304
1305 Regular bugfix release\.
1306
1307 <a id="bugfixes-40"></a>
1308 ### Bugfixes
1309
1310 * docker\_api connection plugin\, docker\_container\_exec\, docker\_container\_copy\_into \- properly close socket to Daemon after executing commands in containers \([https\://github\.com/ansible\-collections/community\.docker/pull/582](https\://github\.com/ansible\-collections/community\.docker/pull/582)\)\.
1311 * docker\_container \- fix <code>tmfs\_size</code> and <code>tmpfs\_mode</code> not being set \([https\://github\.com/ansible\-collections/community\.docker/pull/580](https\://github\.com/ansible\-collections/community\.docker/pull/580)\)\.
1312 * various plugins and modules \- remove unnecessary imports \([https\://github\.com/ansible\-collections/community\.docker/pull/574](https\://github\.com/ansible\-collections/community\.docker/pull/574)\)\.
1313
1314 <a id="v3-4-0"></a>
1315 ## v3\.4\.0
1316
1317 <a id="release-summary-52"></a>
1318 ### Release Summary
1319
1320 Regular bugfix and feature release\.
1321
1322 <a id="minor-changes-21"></a>
1323 ### Minor Changes
1324
1325 * docker\_api connection plugin \- when copying files to/from a container\, stream the file contents instead of first reading them to memory \([https\://github\.com/ansible\-collections/community\.docker/pull/545](https\://github\.com/ansible\-collections/community\.docker/pull/545)\)\.
1326 * docker\_host\_info \- allow to list all containers with new option <code>containers\_all</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/535](https\://github\.com/ansible\-collections/community\.docker/issues/535)\, [https\://github\.com/ansible\-collections/community\.docker/pull/538](https\://github\.com/ansible\-collections/community\.docker/pull/538)\)\.
1327
1328 <a id="bugfixes-41"></a>
1329 ### Bugfixes
1330
1331 * docker\_api connection plugin \- fix error handling when 409 Conflict is returned by the Docker daemon in case of a stopped container \([https\://github\.com/ansible\-collections/community\.docker/pull/546](https\://github\.com/ansible\-collections/community\.docker/pull/546)\)\.
1332 * docker\_container\_exec \- fix error handling when 409 Conflict is returned by the Docker daemon in case of a stopped container \([https\://github\.com/ansible\-collections/community\.docker/pull/546](https\://github\.com/ansible\-collections/community\.docker/pull/546)\)\.
1333 * docker\_plugin \- do not crash if plugin is installed in check mode \([https\://github\.com/ansible\-collections/community\.docker/issues/552](https\://github\.com/ansible\-collections/community\.docker/issues/552)\, [https\://github\.com/ansible\-collections/community\.docker/pull/553](https\://github\.com/ansible\-collections/community\.docker/pull/553)\)\.
1334 * most modules \- fix handling of <code>DOCKER\_TIMEOUT</code> environment variable\, and improve handling of other fallback environment variables \([https\://github\.com/ansible\-collections/community\.docker/issues/551](https\://github\.com/ansible\-collections/community\.docker/issues/551)\, [https\://github\.com/ansible\-collections/community\.docker/pull/554](https\://github\.com/ansible\-collections/community\.docker/pull/554)\)\.
1335
1336 <a id="new-modules-4"></a>
1337 ### New Modules
1338
1339 * community\.docker\.docker\_container\_copy\_into \- Copy a file into a Docker container
1340
1341 <a id="v3-3-2"></a>
1342 ## v3\.3\.2
1343
1344 <a id="release-summary-53"></a>
1345 ### Release Summary
1346
1347 Bugfix release\.
1348
1349 <a id="bugfixes-42"></a>
1350 ### Bugfixes
1351
1352 * docker\_container \- when <code>detach\=false</code>\, wait indefinitely and not at most one minute\. This was the behavior with Docker SDK for Python\, and was accidentally changed in 3\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/526](https\://github\.com/ansible\-collections/community\.docker/issues/526)\, [https\://github\.com/ansible\-collections/community\.docker/pull/527](https\://github\.com/ansible\-collections/community\.docker/pull/527)\)\.
1353
1354 <a id="v3-3-1"></a>
1355 ## v3\.3\.1
1356
1357 <a id="release-summary-54"></a>
1358 ### Release Summary
1359
1360 Bugfix release\.
1361
1362 <a id="bugfixes-43"></a>
1363 ### Bugfixes
1364
1365 * current\_container\_facts \- make container detection work better in more cases \([https\://github\.com/ansible\-collections/community\.docker/pull/522](https\://github\.com/ansible\-collections/community\.docker/pull/522)\)\.
1366
1367 <a id="v3-3-0"></a>
1368 ## v3\.3\.0
1369
1370 <a id="release-summary-55"></a>
1371 ### Release Summary
1372
1373 Feature and bugfix release\.
1374
1375 <a id="minor-changes-22"></a>
1376 ### Minor Changes
1377
1378 * current\_container\_facts \- make work with current Docker version\, also support Podman \([https\://github\.com/ansible\-collections/community\.docker/pull/510](https\://github\.com/ansible\-collections/community\.docker/pull/510)\)\.
1379 * docker\_image \- when using <code>archive\_path</code>\, detect whether changes are necessary based on the image ID \(hash\)\. If the existing tar archive matches the source\, do nothing\. Previously\, each task execution re\-created the archive \([https\://github\.com/ansible\-collections/community\.docker/pull/500](https\://github\.com/ansible\-collections/community\.docker/pull/500)\)\.
1380
1381 <a id="bugfixes-44"></a>
1382 ### Bugfixes
1383
1384 * docker\_container\_exec \- fix <code>chdir</code> option which was ignored since community\.docker 3\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/517](https\://github\.com/ansible\-collections/community\.docker/issues/517)\, [https\://github\.com/ansible\-collections/community\.docker/pull/518](https\://github\.com/ansible\-collections/community\.docker/pull/518)\)\.
1385 * vendored latest Docker SDK for Python bugfix \([https\://github\.com/ansible\-collections/community\.docker/pull/513](https\://github\.com/ansible\-collections/community\.docker/pull/513)\, [https\://github\.com/docker/docker\-py/issues/3045](https\://github\.com/docker/docker\-py/issues/3045)\)\.
1386
1387 <a id="v3-2-2"></a>
1388 ## v3\.2\.2
1389
1390 <a id="release-summary-56"></a>
1391 ### Release Summary
1392
1393 Bugfix release\.
1394
1395 <a id="bugfixes-45"></a>
1396 ### Bugfixes
1397
1398 * docker\_container \- the <code>kill\_signal</code> option erroneously did not accept strings anymore since 3\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/505](https\://github\.com/ansible\-collections/community\.docker/issues/505)\, [https\://github\.com/ansible\-collections/community\.docker/pull/506](https\://github\.com/ansible\-collections/community\.docker/pull/506)\)\.
1399
1400 <a id="v3-2-1"></a>
1401 ## v3\.2\.1
1402
1403 <a id="release-summary-57"></a>
1404 ### Release Summary
1405
1406 Maintenance release with improved documentation\.
1407
1408 <a id="v3-2-0"></a>
1409 ## v3\.2\.0
1410
1411 <a id="release-summary-58"></a>
1412 ### Release Summary
1413
1414 Feature and deprecation release\.
1415
1416 <a id="minor-changes-23"></a>
1417 ### Minor Changes
1418
1419 * docker\_container \- added <code>image\_name\_mismatch</code> option which allows to control the behavior if the container uses the image specified\, but the container\'s configuration uses a different name for the image than the one provided to the module \([https\://github\.com/ansible\-collections/community\.docker/issues/485](https\://github\.com/ansible\-collections/community\.docker/issues/485)\, [https\://github\.com/ansible\-collections/community\.docker/pull/488](https\://github\.com/ansible\-collections/community\.docker/pull/488)\)\.
1420
1421 <a id="deprecated-features-3"></a>
1422 ### Deprecated Features
1423
1424 * docker\_container \- the <code>ignore\_image</code> option is deprecated and will be removed in community\.docker 4\.0\.0\. Use <code>image\: ignore</code> in <code>comparisons</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/487](https\://github\.com/ansible\-collections/community\.docker/pull/487)\)\.
1425 * docker\_container \- the <code>purge\_networks</code> option is deprecated and will be removed in community\.docker 4\.0\.0\. Use <code>networks\: strict</code> in <code>comparisons</code> instead\, and make sure to provide <code>networks</code>\, with value <code>\[\]</code> if all networks should be removed \([https\://github\.com/ansible\-collections/community\.docker/pull/487](https\://github\.com/ansible\-collections/community\.docker/pull/487)\)\.
1426
1427 <a id="v3-1-0"></a>
1428 ## v3\.1\.0
1429
1430 <a id="release-summary-59"></a>
1431 ### Release Summary
1432
1433 Feature release\.
1434
1435 <a id="minor-changes-24"></a>
1436 ### Minor Changes
1437
1438 * The collection repository conforms to the [REUSE specification](https\://reuse\.software/spec/) except for the changelog fragments \([https\://github\.com/ansible\-collections/community\.docker/pull/462](https\://github\.com/ansible\-collections/community\.docker/pull/462)\)\.
1439 * docker\_swarm \- allows usage of the <code>data\_path\_port</code> parameter when initializing a swarm \([https\://github\.com/ansible\-collections/community\.docker/issues/296](https\://github\.com/ansible\-collections/community\.docker/issues/296)\)\.
1440
1441 <a id="v3-0-2"></a>
1442 ## v3\.0\.2
1443
1444 <a id="release-summary-60"></a>
1445 ### Release Summary
1446
1447 Bugfix release\.
1448
1449 <a id="bugfixes-46"></a>
1450 ### Bugfixes
1451
1452 * docker\_image \- fix build argument handling \([https\://github\.com/ansible\-collections/community\.docker/issues/455](https\://github\.com/ansible\-collections/community\.docker/issues/455)\, [https\://github\.com/ansible\-collections/community\.docker/pull/456](https\://github\.com/ansible\-collections/community\.docker/pull/456)\)\.
1453
1454 <a id="v3-0-1"></a>
1455 ## v3\.0\.1
1456
1457 <a id="release-summary-61"></a>
1458 ### Release Summary
1459
1460 Bugfix release\.
1461
1462 <a id="bugfixes-47"></a>
1463 ### Bugfixes
1464
1465 * docker\_container \- fix handling of <code>env\_file</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/451](https\://github\.com/ansible\-collections/community\.docker/issues/451)\, [https\://github\.com/ansible\-collections/community\.docker/pull/452](https\://github\.com/ansible\-collections/community\.docker/pull/452)\)\.
1466
1467 <a id="v3-0-0"></a>
1468 ## v3\.0\.0
1469
1470 <a id="release-summary-62"></a>
1471 ### Release Summary
1472
1473 The 3\.0\.0 release features a rewrite of the <code>docker\_container</code> module\, and many modules and plugins no longer depend on the Docker SDK for Python\.
1474
1475 <a id="major-changes-1"></a>
1476 ### Major Changes
1477
1478 * The collection now contains vendored code from the Docker SDK for Python to talk to the Docker daemon\. Modules and plugins using this code no longer need the Docker SDK for Python installed on the machine the module or plugin is running on \([https\://github\.com/ansible\-collections/community\.docker/pull/398](https\://github\.com/ansible\-collections/community\.docker/pull/398)\)\.
1479 * docker\_api connection plugin \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/414](https\://github\.com/ansible\-collections/community\.docker/pull/414)\)\.
1480 * docker\_container \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1481 * docker\_container \- the module was completely rewritten from scratch \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1482 * docker\_container\_exec \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/401](https\://github\.com/ansible\-collections/community\.docker/pull/401)\)\.
1483 * docker\_container\_info \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/402](https\://github\.com/ansible\-collections/community\.docker/pull/402)\)\.
1484 * docker\_containers inventory plugin \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/413](https\://github\.com/ansible\-collections/community\.docker/pull/413)\)\.
1485 * docker\_host\_info \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/403](https\://github\.com/ansible\-collections/community\.docker/pull/403)\)\.
1486 * docker\_image \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/404](https\://github\.com/ansible\-collections/community\.docker/pull/404)\)\.
1487 * docker\_image\_info \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/405](https\://github\.com/ansible\-collections/community\.docker/pull/405)\)\.
1488 * docker\_image\_load \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/406](https\://github\.com/ansible\-collections/community\.docker/pull/406)\)\.
1489 * docker\_login \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/407](https\://github\.com/ansible\-collections/community\.docker/pull/407)\)\.
1490 * docker\_network \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/408](https\://github\.com/ansible\-collections/community\.docker/pull/408)\)\.
1491 * docker\_network\_info \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/409](https\://github\.com/ansible\-collections/community\.docker/pull/409)\)\.
1492 * docker\_plugin \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/429](https\://github\.com/ansible\-collections/community\.docker/pull/429)\)\.
1493 * docker\_prune \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/410](https\://github\.com/ansible\-collections/community\.docker/pull/410)\)\.
1494 * docker\_volume \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/411](https\://github\.com/ansible\-collections/community\.docker/pull/411)\)\.
1495 * docker\_volume\_info \- no longer uses the Docker SDK for Python\. It requires <code>requests</code> to be installed\, and depending on the features used has some more requirements\. If the Docker SDK for Python is installed\, these requirements are likely met \([https\://github\.com/ansible\-collections/community\.docker/pull/412](https\://github\.com/ansible\-collections/community\.docker/pull/412)\)\.
1496
1497 <a id="minor-changes-25"></a>
1498 ### Minor Changes
1499
1500 * All software licenses are now in the <code>LICENSES/</code> directory of the collection root\. Moreover\, <code>SPDX\-License\-Identifier\:</code> is used to declare the applicable license for every file that is not automatically generated \([https\://github\.com/ansible\-collections/community\.docker/pull/430](https\://github\.com/ansible\-collections/community\.docker/pull/430)\)\.
1501 * Remove vendored copy of <code>distutils\.version</code> in favor of vendored copy included with ansible\-core 2\.12\+\. For ansible\-core 2\.11\, uses <code>distutils\.version</code> for Python \< 3\.12\. There is no support for ansible\-core 2\.11 with Python 3\.12\+ \([https\://github\.com/ansible\-collections/community\.docker/pull/271](https\://github\.com/ansible\-collections/community\.docker/pull/271)\)\.
1502 * docker\_container \- add a new parameter <code>image\_comparison</code> to control the behavior for which image will be used for idempotency checks \([https\://github\.com/ansible\-collections/community\.docker/issues/421](https\://github\.com/ansible\-collections/community\.docker/issues/421)\, [https\://github\.com/ansible\-collections/community\.docker/pull/428](https\://github\.com/ansible\-collections/community\.docker/pull/428)\)\.
1503 * docker\_container \- add support for <code>cgroupns\_mode</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/338](https\://github\.com/ansible\-collections/community\.docker/issues/338)\, [https\://github\.com/ansible\-collections/community\.docker/pull/427](https\://github\.com/ansible\-collections/community\.docker/pull/427)\)\.
1504 * docker\_container \- allow to specify <code>platform</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/123](https\://github\.com/ansible\-collections/community\.docker/issues/123)\, [https\://github\.com/ansible\-collections/community\.docker/pull/426](https\://github\.com/ansible\-collections/community\.docker/pull/426)\)\.
1505 * modules and plugins communicating directly with the Docker daemon \- improve default TLS version selection for Python 3\.6 and newer\. This is only a change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1506 * modules and plugins communicating directly with the Docker daemon \- simplify use of helper function that was removed in Docker SDK for Python to find executables \([https\://github\.com/ansible\-collections/community\.docker/pull/438](https\://github\.com/ansible\-collections/community\.docker/pull/438)\)\.
1507 * socker\_handler and socket\_helper module utils \- improve Python forward compatibility\, create helper functions for file blocking/unblocking \([https\://github\.com/ansible\-collections/community\.docker/pull/415](https\://github\.com/ansible\-collections/community\.docker/pull/415)\)\.
1508
1509 <a id="breaking-changes--porting-guide-2"></a>
1510 ### Breaking Changes / Porting Guide
1511
1512 * This collection does not work with ansible\-core 2\.11 on Python 3\.12\+\. Please either upgrade to ansible\-core 2\.12\+\, or use Python 3\.11 or earlier \([https\://github\.com/ansible\-collections/community\.docker/pull/271](https\://github\.com/ansible\-collections/community\.docker/pull/271)\)\.
1513 * docker\_container \- <code>exposed\_ports</code> is no longer ignored in <code>comparisons</code>\. Before\, its value was assumed to be identical with the value of <code>published\_ports</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1514 * docker\_container \- <code>log\_options</code> can no longer be specified when <code>log\_driver</code> is not specified \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1515 * docker\_container \- <code>publish\_all\_ports</code> is no longer ignored in <code>comparisons</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1516 * docker\_container \- <code>restart\_retries</code> can no longer be specified when <code>restart\_policy</code> is not specified \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1517 * docker\_container \- <code>stop\_timeout</code> is no longer ignored for idempotency if told to be not ignored in <code>comparisons</code>\. So far it defaulted to <code>ignore</code> there\, and setting it to <code>strict</code> had no effect \([https\://github\.com/ansible\-collections/community\.docker/pull/422](https\://github\.com/ansible\-collections/community\.docker/pull/422)\)\.
1518 * modules and plugins communicating directly with the Docker daemon \- when connecting by SSH and not using <code>use\_ssh\_client\=true</code>\, reject unknown host keys instead of accepting them\. This is only a breaking change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1519
1520 <a id="removed-features-previously-deprecated-2"></a>
1521 ### Removed Features \(previously deprecated\)
1522
1523 * Execution Environments built with community\.docker no longer include docker\-compose \< 2\.0\.0\. If you need to use it with the <code>docker\_compose</code> module\, please install that requirement manually \([https\://github\.com/ansible\-collections/community\.docker/pull/400](https\://github\.com/ansible\-collections/community\.docker/pull/400)\)\.
1524 * Support for Ansible 2\.9 and ansible\-base 2\.10 has been removed\. If you need support for Ansible 2\.9 or ansible\-base 2\.10\, please use community\.docker 2\.x\.y \([https\://github\.com/ansible\-collections/community\.docker/pull/400](https\://github\.com/ansible\-collections/community\.docker/pull/400)\)\.
1525 * Support for Docker API versions 1\.20 to 1\.24 has been removed\. If you need support for these API versions\, please use community\.docker 2\.x\.y \([https\://github\.com/ansible\-collections/community\.docker/pull/400](https\://github\.com/ansible\-collections/community\.docker/pull/400)\)\.
1526 * Support for Python 2\.6 has been removed\. If you need support for Python 2\.6\, please use community\.docker 2\.x\.y \([https\://github\.com/ansible\-collections/community\.docker/pull/400](https\://github\.com/ansible\-collections/community\.docker/pull/400)\)\.
1527 * Various modules \- the default of <code>tls\_hostname</code> \(<code>localhost</code>\) has been removed\. If you want to continue using <code>localhost</code>\, you need to specify it explicitly \([https\://github\.com/ansible\-collections/community\.docker/pull/363](https\://github\.com/ansible\-collections/community\.docker/pull/363)\)\.
1528 * docker\_container \- the <code>all</code> value is no longer allowed in <code>published\_ports</code>\. Use <code>publish\_all\_ports\=true</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/399](https\://github\.com/ansible\-collections/community\.docker/pull/399)\)\.
1529 * docker\_container \- the default of <code>command\_handling</code> was changed from <code>compatibility</code> to <code>correct</code>\. Older versions were warning for every invocation of the module when this would result in a change of behavior \([https\://github\.com/ansible\-collections/community\.docker/pull/399](https\://github\.com/ansible\-collections/community\.docker/pull/399)\)\.
1530 * docker\_stack \- the return values <code>out</code> and <code>err</code> have been removed\. Use <code>stdout</code> and <code>stderr</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/363](https\://github\.com/ansible\-collections/community\.docker/pull/363)\)\.
1531
1532 <a id="security-fixes-1"></a>
1533 ### Security Fixes
1534
1535 * modules and plugins communicating directly with the Docker daemon \- when connecting by SSH and not using <code>use\_ssh\_client\=true</code>\, reject unknown host keys instead of accepting them\. This is only a change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1536
1537 <a id="bugfixes-48"></a>
1538 ### Bugfixes
1539
1540 * docker\_image \- when composing the build context\, trim trailing whitespace from <code>\.dockerignore</code> entries\. This is only a change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1541 * docker\_plugin \- fix crash when handling plugin options \([https\://github\.com/ansible\-collections/community\.docker/issues/446](https\://github\.com/ansible\-collections/community\.docker/issues/446)\, [https\://github\.com/ansible\-collections/community\.docker/pull/447](https\://github\.com/ansible\-collections/community\.docker/pull/447)\)\.
1542 * docker\_stack \- fix broken string formatting when reporting error in case <code>compose</code> was containing invalid values \([https\://github\.com/ansible\-collections/community\.docker/pull/448](https\://github\.com/ansible\-collections/community\.docker/pull/448)\)\.
1543 * modules and plugins communicating directly with the Docker daemon \- do not create a subshell for SSH connections when using <code>use\_ssh\_client\=true</code>\. This is only a change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1544 * modules and plugins communicating directly with the Docker daemon \- fix <code>ProxyCommand</code> handling for SSH connections when not using <code>use\_ssh\_client\=true</code>\. This is only a change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1545 * modules and plugins communicating directly with the Docker daemon \- fix parsing of IPv6 addresses with a port in <code>docker\_host</code>\. This is only a change relative to older community\.docker 3\.0\.0 pre\-releases or with respect to Docker SDK for Python \< 6\.0\.0\. Docker SDK for Python 6\.0\.0 will also include this change \([https\://github\.com/ansible\-collections/community\.docker/pull/434](https\://github\.com/ansible\-collections/community\.docker/pull/434)\)\.
1546 * modules and plugins communicating directly with the Docker daemon \- prevent crash when TLS is used \([https\://github\.com/ansible\-collections/community\.docker/pull/432](https\://github\.com/ansible\-collections/community\.docker/pull/432)\)\.
1547
1548 <a id="v2-7-0"></a>
1549 ## v2\.7\.0
1550
1551 <a id="release-summary-63"></a>
1552 ### Release Summary
1553
1554 Bugfix and deprecation release\. The next 2\.x\.y releases will only be bugfix releases\, the next expect minor/major release will be 3\.0\.0 with some major changes\.
1555
1556 <a id="minor-changes-26"></a>
1557 ### Minor Changes
1558
1559 * Move common utility functions from the <code>common</code> module\_util to a new module\_util called <code>util</code>\. This should not have any user\-visible effect \([https\://github\.com/ansible\-collections/community\.docker/pull/390](https\://github\.com/ansible\-collections/community\.docker/pull/390)\)\.
1560
1561 <a id="deprecated-features-4"></a>
1562 ### Deprecated Features
1563
1564 * Support for Docker API version 1\.20 to 1\.24 has been deprecated and will be removed in community\.docker 3\.0\.0\. The first Docker version supporting API version 1\.25 was Docker 1\.13\, released in January 2017\. This affects the modules <code>docker\_container</code>\, <code>docker\_container\_exec</code>\, <code>docker\_container\_info</code>\, <code>docker\_compose</code>\, <code>docker\_login</code>\, <code>docker\_image</code>\, <code>docker\_image\_info</code>\, <code>docker\_image\_load</code>\, <code>docker\_host\_info</code>\, <code>docker\_network</code>\, <code>docker\_network\_info</code>\, <code>docker\_node\_info</code>\, <code>docker\_swarm\_info</code>\, <code>docker\_swarm\_service</code>\, <code>docker\_swarm\_service\_info</code>\, <code>docker\_volume\_info</code>\, and <code>docker\_volume</code>\, whose minimally supported API version is between 1\.20 and 1\.24 \([https\://github\.com/ansible\-collections/community\.docker/pull/396](https\://github\.com/ansible\-collections/community\.docker/pull/396)\)\.
1565 * Support for Python 2\.6 is deprecated and will be removed in the next major release \(community\.docker 3\.0\.0\)\. Some modules might still work with Python 2\.6\, but we will no longer try to ensure compatibility \([https\://github\.com/ansible\-collections/community\.docker/pull/388](https\://github\.com/ansible\-collections/community\.docker/pull/388)\)\.
1566
1567 <a id="bugfixes-49"></a>
1568 ### Bugfixes
1569
1570 * Docker SDK for Python based modules and plugins \- if the API version is specified as an option\, use that one to validate API version requirements of module/plugin options instead of the latest API version supported by the Docker daemon\. This also avoids one unnecessary API call per module/plugin \([https\://github\.com/ansible\-collections/community\.docker/pull/389](https\://github\.com/ansible\-collections/community\.docker/pull/389)\)\.
1571
1572 <a id="v2-6-0"></a>
1573 ## v2\.6\.0
1574
1575 <a id="release-summary-64"></a>
1576 ### Release Summary
1577
1578 Bugfix and feature release\.
1579
1580 <a id="minor-changes-27"></a>
1581 ### Minor Changes
1582
1583 * docker\_container \- added <code>image\_label\_mismatch</code> parameter \([https\://github\.com/ansible\-collections/community\.docker/issues/314](https\://github\.com/ansible\-collections/community\.docker/issues/314)\, [https\://github\.com/ansible\-collections/community\.docker/pull/370](https\://github\.com/ansible\-collections/community\.docker/pull/370)\)\.
1584
1585 <a id="deprecated-features-5"></a>
1586 ### Deprecated Features
1587
1588 * Support for Ansible 2\.9 and ansible\-base 2\.10 is deprecated\, and will be removed in the next major release \(community\.docker 3\.0\.0\)\. Some modules might still work with these versions afterwards\, but we will no longer keep compatibility code that was needed to support them \([https\://github\.com/ansible\-collections/community\.docker/pull/361](https\://github\.com/ansible\-collections/community\.docker/pull/361)\)\.
1589 * The dependency on docker\-compose for Execution Environments is deprecated and will be removed in community\.docker 3\.0\.0\. The [Python docker\-compose library](https\://pypi\.org/project/docker\-compose/) is unmaintained and can cause dependency issues\. You can manually still install it in an Execution Environment when needed \([https\://github\.com/ansible\-collections/community\.docker/pull/373](https\://github\.com/ansible\-collections/community\.docker/pull/373)\)\.
1590 * Various modules \- the default of <code>tls\_hostname</code> that was supposed to be removed in community\.docker 2\.0\.0 will now be removed in version 3\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/362](https\://github\.com/ansible\-collections/community\.docker/pull/362)\)\.
1591 * docker\_stack \- the return values <code>out</code> and <code>err</code> that were supposed to be removed in community\.docker 2\.0\.0 will now be removed in version 3\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/362](https\://github\.com/ansible\-collections/community\.docker/pull/362)\)\.
1592
1593 <a id="bugfixes-50"></a>
1594 ### Bugfixes
1595
1596 * docker\_container \- fail with a meaningful message instead of crashing if a port is specified with more than three colon\-separated parts \([https\://github\.com/ansible\-collections/community\.docker/pull/367](https\://github\.com/ansible\-collections/community\.docker/pull/367)\, [https\://github\.com/ansible\-collections/community\.docker/issues/365](https\://github\.com/ansible\-collections/community\.docker/issues/365)\)\.
1597 * docker\_container \- remove unused code that will cause problems with Python 3\.13 \([https\://github\.com/ansible\-collections/community\.docker/pull/354](https\://github\.com/ansible\-collections/community\.docker/pull/354)\)\.
1598
1599 <a id="v2-5-1"></a>
1600 ## v2\.5\.1
1601
1602 <a id="release-summary-65"></a>
1603 ### Release Summary
1604
1605 Maintenance release\.
1606
1607 <a id="bugfixes-51"></a>
1608 ### Bugfixes
1609
1610 * Include <code>PSF\-license\.txt</code> file for <code>plugins/module\_utils/\_version\.py</code>\.
1611
1612 <a id="v2-5-0"></a>
1613 ## v2\.5\.0
1614
1615 <a id="release-summary-66"></a>
1616 ### Release Summary
1617
1618 Regular feature release\.
1619
1620 <a id="minor-changes-28"></a>
1621 ### Minor Changes
1622
1623 * docker\_config \- add support for <code>template\_driver</code> with one option <code>golang</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/332](https\://github\.com/ansible\-collections/community\.docker/issues/332)\, [https\://github\.com/ansible\-collections/community\.docker/pull/345](https\://github\.com/ansible\-collections/community\.docker/pull/345)\)\.
1624 * docker\_swarm \- adds <code>data\_path\_addr</code> parameter during swarm initialization or when joining \([https\://github\.com/ansible\-collections/community\.docker/issues/339](https\://github\.com/ansible\-collections/community\.docker/issues/339)\)\.
1625
1626 <a id="v2-4-0"></a>
1627 ## v2\.4\.0
1628
1629 <a id="release-summary-67"></a>
1630 ### Release Summary
1631
1632 Regular feature and bugfix release\.
1633
1634 <a id="minor-changes-29"></a>
1635 ### Minor Changes
1636
1637 * Prepare collection for inclusion in an Execution Environment by declaring its dependencies\. The <code>docker\_stack\*</code> modules are not supported \([https\://github\.com/ansible\-collections/community\.docker/pull/336](https\://github\.com/ansible\-collections/community\.docker/pull/336)\)\.
1638 * current\_container\_facts \- add detection for GitHub Actions \([https\://github\.com/ansible\-collections/community\.docker/pull/336](https\://github\.com/ansible\-collections/community\.docker/pull/336)\)\.
1639 * docker\_container \- support returning Docker container log output when using Docker\'s <code>local</code> logging driver\, an optimized local logging driver introduced in Docker 18\.09 \([https\://github\.com/ansible\-collections/community\.docker/pull/337](https\://github\.com/ansible\-collections/community\.docker/pull/337)\)\.
1640
1641 <a id="bugfixes-52"></a>
1642 ### Bugfixes
1643
1644 * docker connection plugin \- make sure that <code>docker\_extra\_args</code> is used for querying the Docker version\. Also ensures that the Docker version is only queried when needed\. This is currently the case if a remote user is specified \([https\://github\.com/ansible\-collections/community\.docker/issues/325](https\://github\.com/ansible\-collections/community\.docker/issues/325)\, [https\://github\.com/ansible\-collections/community\.docker/pull/327](https\://github\.com/ansible\-collections/community\.docker/pull/327)\)\.
1645
1646 <a id="v2-3-0"></a>
1647 ## v2\.3\.0
1648
1649 <a id="release-summary-68"></a>
1650 ### Release Summary
1651
1652 Regular feature and bugfix release\.
1653
1654 <a id="minor-changes-30"></a>
1655 ### Minor Changes
1656
1657 * docker connection plugin \- implement connection reset by clearing internal container user cache \([https\://github\.com/ansible\-collections/community\.docker/pull/312](https\://github\.com/ansible\-collections/community\.docker/pull/312)\)\.
1658 * docker connection plugin \- simplify <code>actual\_user</code> handling code \([https\://github\.com/ansible\-collections/community\.docker/pull/311](https\://github\.com/ansible\-collections/community\.docker/pull/311)\)\.
1659 * docker connection plugin \- the plugin supports new ways to define the timeout\. These are the <code>ANSIBLE\_DOCKER\_TIMEOUT</code> environment variable\, the <code>timeout</code> setting in the <code>docker\_connection</code> section of <code>ansible\.cfg</code>\, and the <code>ansible\_docker\_timeout</code> variable \([https\://github\.com/ansible\-collections/community\.docker/pull/297](https\://github\.com/ansible\-collections/community\.docker/pull/297)\)\.
1660 * docker\_api connection plugin \- implement connection reset by clearing internal container user/group ID cache \([https\://github\.com/ansible\-collections/community\.docker/pull/312](https\://github\.com/ansible\-collections/community\.docker/pull/312)\)\.
1661 * docker\_api connection plugin \- the plugin supports new ways to define the timeout\. These are the <code>ANSIBLE\_DOCKER\_TIMEOUT</code> environment variable\, the <code>timeout</code> setting in the <code>docker\_connection</code> section of <code>ansible\.cfg</code>\, and the <code>ansible\_docker\_timeout</code> variable \([https\://github\.com/ansible\-collections/community\.docker/pull/308](https\://github\.com/ansible\-collections/community\.docker/pull/308)\)\.
1662
1663 <a id="bugfixes-53"></a>
1664 ### Bugfixes
1665
1666 * docker connection plugin \- fix option handling to be compatible with ansible\-core 2\.13 \([https\://github\.com/ansible\-collections/community\.docker/pull/297](https\://github\.com/ansible\-collections/community\.docker/pull/297)\, [https\://github\.com/ansible\-collections/community\.docker/issues/307](https\://github\.com/ansible\-collections/community\.docker/issues/307)\)\.
1667 * docker\_api connection plugin \- fix option handling to be compatible with ansible\-core 2\.13 \([https\://github\.com/ansible\-collections/community\.docker/pull/308](https\://github\.com/ansible\-collections/community\.docker/pull/308)\)\.
1668
1669 <a id="v2-2-1"></a>
1670 ## v2\.2\.1
1671
1672 <a id="release-summary-69"></a>
1673 ### Release Summary
1674
1675 Regular bugfix release\.
1676
1677 <a id="bugfixes-54"></a>
1678 ### Bugfixes
1679
1680 * docker\_compose \- fix Python 3 type error when extracting warnings or errors from docker\-compose\'s output \([https\://github\.com/ansible\-collections/community\.docker/pull/305](https\://github\.com/ansible\-collections/community\.docker/pull/305)\)\.
1681
1682 <a id="v2-2-0"></a>
1683 ## v2\.2\.0
1684
1685 <a id="release-summary-70"></a>
1686 ### Release Summary
1687
1688 Regular feature and bugfix release\.
1689
1690 <a id="minor-changes-31"></a>
1691 ### Minor Changes
1692
1693 * docker\_config \- add support for rolling update\, set <code>rolling\_versions</code> to <code>true</code> to enable \([https\://github\.com/ansible\-collections/community\.docker/pull/295](https\://github\.com/ansible\-collections/community\.docker/pull/295)\, [https\://github\.com/ansible\-collections/community\.docker/issues/109](https\://github\.com/ansible\-collections/community\.docker/issues/109)\)\.
1694 * docker\_secret \- add support for rolling update\, set <code>rolling\_versions</code> to <code>true</code> to enable \([https\://github\.com/ansible\-collections/community\.docker/pull/293](https\://github\.com/ansible\-collections/community\.docker/pull/293)\, [https\://github\.com/ansible\-collections/community\.docker/issues/21](https\://github\.com/ansible\-collections/community\.docker/issues/21)\)\.
1695 * docker\_swarm\_service \- add support for setting capabilities with the <code>cap\_add</code> and <code>cap\_drop</code> parameters\. Usage is the same as with the <code>capabilities</code> and <code>cap\_drop</code> parameters for <code>docker\_container</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/294](https\://github\.com/ansible\-collections/community\.docker/pull/294)\)\.
1696
1697 <a id="bugfixes-55"></a>
1698 ### Bugfixes
1699
1700 * docker\_container\, docker\_image \- adjust image finding code to peculiarities of <code>podman\-docker</code>\'s API emulation when Docker short names like <code>redis</code> are used \([https\://github\.com/ansible\-collections/community\.docker/issues/292](https\://github\.com/ansible\-collections/community\.docker/issues/292)\)\.
1701
1702 <a id="v2-1-1"></a>
1703 ## v2\.1\.1
1704
1705 <a id="release-summary-71"></a>
1706 ### Release Summary
1707
1708 Emergency release to amend breaking change in previous release\.
1709
1710 <a id="bugfixes-56"></a>
1711 ### Bugfixes
1712
1713 * Fix unintended breaking change caused by [an earlier fix](https\://github\.com/ansible\-collections/community\.docker/pull/258) by vendoring the deprecated Python standard library <code>distutils\.version</code> until this collection stops supporting Ansible 2\.9 and ansible\-base 2\.10 \([https\://github\.com/ansible\-collections/community\.docker/issues/267](https\://github\.com/ansible\-collections/community\.docker/issues/267)\, [https\://github\.com/ansible\-collections/community\.docker/pull/269](https\://github\.com/ansible\-collections/community\.docker/pull/269)\)\.
1714
1715 <a id="v2-1-0"></a>
1716 ## v2\.1\.0
1717
1718 <a id="release-summary-72"></a>
1719 ### Release Summary
1720
1721 Feature and bugfix release\.
1722
1723 <a id="minor-changes-32"></a>
1724 ### Minor Changes
1725
1726 * docker\_container\_exec \- add <code>detach</code> parameter \([https\://github\.com/ansible\-collections/community\.docker/issues/250](https\://github\.com/ansible\-collections/community\.docker/issues/250)\, [https\://github\.com/ansible\-collections/community\.docker/pull/255](https\://github\.com/ansible\-collections/community\.docker/pull/255)\)\.
1727 * docker\_container\_exec \- add <code>env</code> option \([https\://github\.com/ansible\-collections/community\.docker/issues/248](https\://github\.com/ansible\-collections/community\.docker/issues/248)\, [https\://github\.com/ansible\-collections/community\.docker/pull/254](https\://github\.com/ansible\-collections/community\.docker/pull/254)\)\.
1728
1729 <a id="bugfixes-57"></a>
1730 ### Bugfixes
1731
1732 * Various modules and plugins \- use vendored version of <code>distutils\.version</code> included in ansible\-core 2\.12 if available\. This avoids breakage when <code>distutils</code> is removed from the standard library of Python 3\.12\. Note that ansible\-core 2\.11\, ansible\-base 2\.10 and Ansible 2\.9 are right now not compatible with Python 3\.12\, hence this fix does not target these ansible\-core/\-base/2\.9 versions \([https\://github\.com/ansible\-collections/community\.docker/pull/258](https\://github\.com/ansible\-collections/community\.docker/pull/258)\)\.
1733 * docker connection plugin \- replace deprecated <code>distutils\.spawn\.find\_executable</code> with Ansible\'s <code>get\_bin\_path</code> to find the <code>docker</code> executable \([https\://github\.com/ansible\-collections/community\.docker/pull/257](https\://github\.com/ansible\-collections/community\.docker/pull/257)\)\.
1734 * docker\_container\_exec \- disallow using the <code>chdir</code> option for Docker API before 1\.35 \([https\://github\.com/ansible\-collections/community\.docker/pull/253](https\://github\.com/ansible\-collections/community\.docker/pull/253)\)\.
1735
1736 <a id="v2-0-2"></a>
1737 ## v2\.0\.2
1738
1739 <a id="release-summary-73"></a>
1740 ### Release Summary
1741
1742 Bugfix release\.
1743
1744 <a id="bugfixes-58"></a>
1745 ### Bugfixes
1746
1747 * docker\_api connection plugin \- avoid passing an unnecessary argument to a Docker SDK for Python call that is only supported by version 3\.0\.0 or later \([https\://github\.com/ansible\-collections/community\.docker/pull/243](https\://github\.com/ansible\-collections/community\.docker/pull/243)\)\.
1748 * docker\_container\_exec \- <code>chdir</code> is only supported since Docker SDK for Python 3\.0\.0\. Make sure that this option can only use when 3\.0\.0 or later is installed\, and prevent passing this parameter on when <code>chdir</code> is not provided to this module \([https\://github\.com/ansible\-collections/community\.docker/pull/243](https\://github\.com/ansible\-collections/community\.docker/pull/243)\, [https\://github\.com/ansible\-collections/community\.docker/issues/242](https\://github\.com/ansible\-collections/community\.docker/issues/242)\)\.
1749 * nsenter connection plugin \- ensure the <code>nsenter\_pid</code> option is retrieved in <code>\_connect</code> instead of <code>\_\_init\_\_</code> to prevent a crash due to bad initialization order \([https\://github\.com/ansible\-collections/community\.docker/pull/249](https\://github\.com/ansible\-collections/community\.docker/pull/249)\)\.
1750 * nsenter connection plugin \- replace the use of <code>\-\-all\-namespaces</code> with specific namespaces to support compatibility with Busybox nsenter \(used on\, for example\, Alpine containers\) \([https\://github\.com/ansible\-collections/community\.docker/pull/249](https\://github\.com/ansible\-collections/community\.docker/pull/249)\)\.
1751
1752 <a id="v2-0-1"></a>
1753 ## v2\.0\.1
1754
1755 <a id="release-summary-74"></a>
1756 ### Release Summary
1757
1758 Maintenance release with some documentation fixes\.
1759
1760 <a id="v2-0-0"></a>
1761 ## v2\.0\.0
1762
1763 <a id="release-summary-75"></a>
1764 ### Release Summary
1765
1766 New major release with some deprecations removed and a breaking change in the <code>docker\_compose</code> module regarding the <code>timeout</code> parameter\.
1767
1768 <a id="breaking-changes--porting-guide-3"></a>
1769 ### Breaking Changes / Porting Guide
1770
1771 * docker\_compose \- fixed <code>timeout</code> defaulting behavior so that <code>stop\_grace\_period</code>\, if defined in the compose file\, will be used if <code>timeout</code> is not specified \([https\://github\.com/ansible\-collections/community\.docker/pull/163](https\://github\.com/ansible\-collections/community\.docker/pull/163)\)\.
1772
1773 <a id="deprecated-features-6"></a>
1774 ### Deprecated Features
1775
1776 * docker\_container \- using the special value <code>all</code> in <code>published\_ports</code> has been deprecated\. Use <code>publish\_all\_ports\=true</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/210](https\://github\.com/ansible\-collections/community\.docker/pull/210)\)\.
1777
1778 <a id="removed-features-previously-deprecated-3"></a>
1779 ### Removed Features \(previously deprecated\)
1780
1781 * docker\_container \- the default value of <code>container\_default\_behavior</code> changed to <code>no\_defaults</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/210](https\://github\.com/ansible\-collections/community\.docker/pull/210)\)\.
1782 * docker\_container \- the default value of <code>network\_mode</code> is now the name of the first network specified in <code>networks</code> if such are specified and <code>networks\_cli\_compatible\=true</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/210](https\://github\.com/ansible\-collections/community\.docker/pull/210)\)\.
1783 * docker\_container \- the special value <code>all</code> can no longer be used in <code>published\_ports</code> next to other values\. Please use <code>publish\_all\_ports\=true</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/210](https\://github\.com/ansible\-collections/community\.docker/pull/210)\)\.
1784 * docker\_login \- removed the <code>email</code> option \([https\://github\.com/ansible\-collections/community\.docker/pull/210](https\://github\.com/ansible\-collections/community\.docker/pull/210)\)\.
1785
1786 <a id="v1-10-0"></a>
1787 ## v1\.10\.0
1788
1789 <a id="release-summary-76"></a>
1790 ### Release Summary
1791
1792 Regular feature and bugfix release\.
1793
1794 <a id="minor-changes-33"></a>
1795 ### Minor Changes
1796
1797 * Add the modules docker\_container\_exec\, docker\_image\_load and docker\_plugin to the <code>docker</code> module defaults group \([https\://github\.com/ansible\-collections/community\.docker/pull/209](https\://github\.com/ansible\-collections/community\.docker/pull/209)\)\.
1798 * docker\_config \- add option <code>data\_src</code> to read configuration data from target \([https\://github\.com/ansible\-collections/community\.docker/issues/64](https\://github\.com/ansible\-collections/community\.docker/issues/64)\, [https\://github\.com/ansible\-collections/community\.docker/pull/203](https\://github\.com/ansible\-collections/community\.docker/pull/203)\)\.
1799 * docker\_secret \- add option <code>data\_src</code> to read secret data from target \([https\://github\.com/ansible\-collections/community\.docker/issues/64](https\://github\.com/ansible\-collections/community\.docker/issues/64)\, [https\://github\.com/ansible\-collections/community\.docker/pull/203](https\://github\.com/ansible\-collections/community\.docker/pull/203)\)\.
1800
1801 <a id="v1-9-1"></a>
1802 ## v1\.9\.1
1803
1804 <a id="release-summary-77"></a>
1805 ### Release Summary
1806
1807 Regular bugfix release\.
1808
1809 <a id="bugfixes-59"></a>
1810 ### Bugfixes
1811
1812 * docker\_compose \- fixed incorrect <code>changed</code> status for services with <code>profiles</code> defined\, but none enabled \([https\://github\.com/ansible\-collections/community\.docker/pull/192](https\://github\.com/ansible\-collections/community\.docker/pull/192)\)\.
1813
1814 <a id="v1-9-0"></a>
1815 ## v1\.9\.0
1816
1817 <a id="release-summary-78"></a>
1818 ### Release Summary
1819
1820 New bugfixes and features release\.
1821
1822 <a id="minor-changes-34"></a>
1823 ### Minor Changes
1824
1825 * docker\_\* modules \- include <code>ImportError</code> traceback when reporting that Docker SDK for Python could not be found \([https\://github\.com/ansible\-collections/community\.docker/pull/188](https\://github\.com/ansible\-collections/community\.docker/pull/188)\)\.
1826 * docker\_compose \- added <code>env\_file</code> option for specifying custom environment files \([https\://github\.com/ansible\-collections/community\.docker/pull/174](https\://github\.com/ansible\-collections/community\.docker/pull/174)\)\.
1827 * docker\_container \- added <code>publish\_all\_ports</code> option to publish all exposed ports to random ports except those explicitly bound with <code>published\_ports</code> \(this was already added in community\.docker 1\.8\.0\) \([https\://github\.com/ansible\-collections/community\.docker/pull/162](https\://github\.com/ansible\-collections/community\.docker/pull/162)\)\.
1828 * docker\_container \- added new <code>command\_handling</code> option with current deprecated default value <code>compatibility</code> which allows to control how the module handles shell quoting when interpreting lists\, and how the module handles empty lists/strings\. The default will switch to <code>correct</code> in community\.docker 3\.0\.0 \([https\://github\.com/ansible\-collections/community\.docker/pull/186](https\://github\.com/ansible\-collections/community\.docker/pull/186)\)\.
1829 * docker\_container \- lifted restriction preventing the creation of anonymous volumes with the <code>mounts</code> option \([https\://github\.com/ansible\-collections/community\.docker/pull/181](https\://github\.com/ansible\-collections/community\.docker/pull/181)\)\.
1830
1831 <a id="deprecated-features-7"></a>
1832 ### Deprecated Features
1833
1834 * docker\_container \- the new <code>command\_handling</code>\'s default value\, <code>compatibility</code>\, is deprecated and will change to <code>correct</code> in community\.docker 3\.0\.0\. A deprecation warning is emitted by the module in cases where the behavior will change\. Please note that ansible\-core will output a deprecation warning only once\, so if it is shown for an earlier task\, there could be more tasks with this warning where it is not shown \([https\://github\.com/ansible\-collections/community\.docker/pull/186](https\://github\.com/ansible\-collections/community\.docker/pull/186)\)\.
1835
1836 <a id="bugfixes-60"></a>
1837 ### Bugfixes
1838
1839 * docker\_compose \- fixes task failures when bringing up services while using <code>docker\-compose \<1\.17\.0</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/180](https\://github\.com/ansible\-collections/community\.docker/issues/180)\)\.
1840 * docker\_container \- make sure to also return <code>container</code> on <code>detached\=false</code> when status code is non\-zero \([https\://github\.com/ansible\-collections/community\.docker/pull/178](https\://github\.com/ansible\-collections/community\.docker/pull/178)\)\.
1841 * docker\_stack\_info \- make sure that module isn\'t skipped in check mode \([https\://github\.com/ansible\-collections/community\.docker/pull/183](https\://github\.com/ansible\-collections/community\.docker/pull/183)\)\.
1842 * docker\_stack\_task\_info \- make sure that module isn\'t skipped in check mode \([https\://github\.com/ansible\-collections/community\.docker/pull/183](https\://github\.com/ansible\-collections/community\.docker/pull/183)\)\.
1843
1844 <a id="new-plugins"></a>
1845 ### New Plugins
1846
1847 <a id="connection"></a>
1848 #### Connection
1849
1850 * community\.docker\.nsenter \- execute on host running controller container
1851
1852 <a id="v1-8-0"></a>
1853 ## v1\.8\.0
1854
1855 <a id="release-summary-79"></a>
1856 ### Release Summary
1857
1858 Regular bugfix and feature release\.
1859
1860 <a id="minor-changes-35"></a>
1861 ### Minor Changes
1862
1863 * Avoid internal ansible\-core module\_utils in favor of equivalent public API available since at least Ansible 2\.9 \([https\://github\.com/ansible\-collections/community\.docker/pull/164](https\://github\.com/ansible\-collections/community\.docker/pull/164)\)\.
1864 * docker\_compose \- added <code>profiles</code> option to specify service profiles when starting services \([https\://github\.com/ansible\-collections/community\.docker/pull/167](https\://github\.com/ansible\-collections/community\.docker/pull/167)\)\.
1865 * docker\_containers inventory plugin \- when <code>connection\_type\=docker\-api</code>\, now pass Docker daemon connection options from inventory plugin to connection plugin\. This can be disabled by setting <code>configure\_docker\_daemon\=false</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/157](https\://github\.com/ansible\-collections/community\.docker/pull/157)\)\.
1866 * docker\_host\_info \- allow values for keys in <code>containers\_filters</code>\, <code>images\_filters</code>\, <code>networks\_filters</code>\, and <code>volumes\_filters</code> to be passed as YAML lists \([https\://github\.com/ansible\-collections/community\.docker/pull/160](https\://github\.com/ansible\-collections/community\.docker/pull/160)\)\.
1867 * docker\_plugin \- added <code>alias</code> option to specify local names for docker plugins \([https\://github\.com/ansible\-collections/community\.docker/pull/161](https\://github\.com/ansible\-collections/community\.docker/pull/161)\)\.
1868
1869 <a id="bugfixes-61"></a>
1870 ### Bugfixes
1871
1872 * docker\_compose \- fix idempotence bug when using <code>stopped\: true</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/142](https\://github\.com/ansible\-collections/community\.docker/issues/142)\, [https\://github\.com/ansible\-collections/community\.docker/pull/159](https\://github\.com/ansible\-collections/community\.docker/pull/159)\)\.
1873
1874 <a id="v1-7-0"></a>
1875 ## v1\.7\.0
1876
1877 <a id="release-summary-80"></a>
1878 ### Release Summary
1879
1880 Small feature and bugfix release\.
1881
1882 <a id="minor-changes-36"></a>
1883 ### Minor Changes
1884
1885 * docker\_image \- allow to tag images by ID \([https\://github\.com/ansible\-collections/community\.docker/pull/149](https\://github\.com/ansible\-collections/community\.docker/pull/149)\)\.
1886
1887 <a id="v1-6-1"></a>
1888 ## v1\.6\.1
1889
1890 <a id="release-summary-81"></a>
1891 ### Release Summary
1892
1893 Bugfix release to reduce deprecation warning spam\.
1894
1895 <a id="bugfixes-62"></a>
1896 ### Bugfixes
1897
1898 * docker\_\* modules and plugins\, except <code>docker\_swarm</code> connection plugin and <code>docker\_compose</code> and <code>docker\_stack\*\` modules \- only emit \`\`tls\_hostname</code> deprecation message if TLS is actually used \([https\://github\.com/ansible\-collections/community\.docker/pull/143](https\://github\.com/ansible\-collections/community\.docker/pull/143)\)\.
1899
1900 <a id="v1-6-0"></a>
1901 ## v1\.6\.0
1902
1903 <a id="release-summary-82"></a>
1904 ### Release Summary
1905
1906 Regular bugfix and feature release\.
1907
1908 <a id="minor-changes-37"></a>
1909 ### Minor Changes
1910
1911 * common module utils \- correct error messages for guiding to install proper Docker SDK for Python module \([https\://github\.com/ansible\-collections/community\.docker/pull/125](https\://github\.com/ansible\-collections/community\.docker/pull/125)\)\.
1912 * docker\_container \- allow <code>memory\_swap\: \-1</code> to set memory swap limit to unlimited\. This is useful when the user cannot set memory swap limits due to cgroup limitations or other reasons\, as by default Docker will try to set swap usage to two times the value of <code>memory</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/138](https\://github\.com/ansible\-collections/community\.docker/pull/138)\)\.
1913
1914 <a id="deprecated-features-8"></a>
1915 ### Deprecated Features
1916
1917 * docker\_\* modules and plugins\, except <code>docker\_swarm</code> connection plugin and <code>docker\_compose</code> and <code>docker\_stack\*\` modules \- the current default \`\`localhost</code> for <code>tls\_hostname</code> is deprecated\. In community\.docker 2\.0\.0 it will be computed from <code>docker\_host</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/134](https\://github\.com/ansible\-collections/community\.docker/pull/134)\)\.
1918
1919 <a id="bugfixes-63"></a>
1920 ### Bugfixes
1921
1922 * docker\-compose \- fix not pulling when <code>state\: present</code> and <code>stopped\: true</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/12](https\://github\.com/ansible\-collections/community\.docker/issues/12)\, [https\://github\.com/ansible\-collections/community\.docker/pull/119](https\://github\.com/ansible\-collections/community\.docker/pull/119)\)\.
1923 * docker\_plugin \- also configure plugin after installing \([https\://github\.com/ansible\-collections/community\.docker/issues/118](https\://github\.com/ansible\-collections/community\.docker/issues/118)\, [https\://github\.com/ansible\-collections/community\.docker/pull/135](https\://github\.com/ansible\-collections/community\.docker/pull/135)\)\.
1924 * docker\_swarm\_services \- avoid crash during idempotence check if <code>published\_port</code> is not specified \([https\://github\.com/ansible\-collections/community\.docker/issues/107](https\://github\.com/ansible\-collections/community\.docker/issues/107)\, [https\://github\.com/ansible\-collections/community\.docker/pull/136](https\://github\.com/ansible\-collections/community\.docker/pull/136)\)\.
1925
1926 <a id="v1-5-0"></a>
1927 ## v1\.5\.0
1928
1929 <a id="release-summary-83"></a>
1930 ### Release Summary
1931
1932 Regular feature release\.
1933
1934 <a id="minor-changes-38"></a>
1935 ### Minor Changes
1936
1937 * Add the <code>use\_ssh\_client</code> option to most docker modules and plugins \([https\://github\.com/ansible\-collections/community\.docker/issues/108](https\://github\.com/ansible\-collections/community\.docker/issues/108)\, [https\://github\.com/ansible\-collections/community\.docker/pull/114](https\://github\.com/ansible\-collections/community\.docker/pull/114)\)\.
1938
1939 <a id="bugfixes-64"></a>
1940 ### Bugfixes
1941
1942 * all modules \- use <code>to\_native</code> to convert exceptions to strings \([https\://github\.com/ansible\-collections/community\.docker/pull/121](https\://github\.com/ansible\-collections/community\.docker/pull/121)\)\.
1943
1944 <a id="new-modules-5"></a>
1945 ### New Modules
1946
1947 * community\.docker\.docker\_container\_exec \- Execute command in a docker container
1948
1949 <a id="v1-4-0"></a>
1950 ## v1\.4\.0
1951
1952 <a id="release-summary-84"></a>
1953 ### Release Summary
1954
1955 Security release to address another potential secret leak\. Also includes regular bugfixes and features\.
1956
1957 <a id="minor-changes-39"></a>
1958 ### Minor Changes
1959
1960 * docker\_swarm\_service \- change <code>publish\.published\_port</code> option from mandatory to optional\. Docker will assign random high port if not specified \([https\://github\.com/ansible\-collections/community\.docker/issues/99](https\://github\.com/ansible\-collections/community\.docker/issues/99)\)\.
1961
1962 <a id="breaking-changes--porting-guide-4"></a>
1963 ### Breaking Changes / Porting Guide
1964
1965 * docker\_swarm \- if <code>join\_token</code> is specified\, a returned join token with the same value will be replaced by <code>VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER</code>\. Make sure that you do not blindly use the join tokens from the return value of this module when the module is invoked with <code>join\_token</code> specified\! This breaking change appears in a minor release since it is necessary to fix a security issue \([https\://github\.com/ansible\-collections/community\.docker/pull/103](https\://github\.com/ansible\-collections/community\.docker/pull/103)\)\.
1966
1967 <a id="security-fixes-2"></a>
1968 ### Security Fixes
1969
1970 * docker\_swarm \- the <code>join\_token</code> option is now marked as <code>no\_log</code> so it is no longer written into logs \([https\://github\.com/ansible\-collections/community\.docker/pull/103](https\://github\.com/ansible\-collections/community\.docker/pull/103)\)\.
1971
1972 <a id="bugfixes-65"></a>
1973 ### Bugfixes
1974
1975 * <code>docker\_swarm\_service</code> \- fix KeyError on caused by reference to deprecated option <code>update\_failure\_action</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/100](https\://github\.com/ansible\-collections/community\.docker/pull/100)\)\.
1976 * docker\_swarm\_service \- mark <code>secrets</code> module option with <code>no\_log\=False</code> since it does not leak secrets \([https\://github\.com/ansible\-collections/community\.general/pull/2001](https\://github\.com/ansible\-collections/community\.general/pull/2001)\)\.
1977
1978 <a id="v1-3-0"></a>
1979 ## v1\.3\.0
1980
1981 <a id="release-summary-85"></a>
1982 ### Release Summary
1983
1984 Regular feature and bugfix release\.
1985
1986 <a id="minor-changes-40"></a>
1987 ### Minor Changes
1988
1989 * docker\_container \- add <code>storage\_opts</code> option to specify storage options \([https\://github\.com/ansible\-collections/community\.docker/issues/91](https\://github\.com/ansible\-collections/community\.docker/issues/91)\, [https\://github\.com/ansible\-collections/community\.docker/pull/93](https\://github\.com/ansible\-collections/community\.docker/pull/93)\)\.
1990 * docker\_image \- allows to specify platform to pull for <code>source\=pull</code> with new option <code>pull\_platform</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/79](https\://github\.com/ansible\-collections/community\.docker/issues/79)\, [https\://github\.com/ansible\-collections/community\.docker/pull/89](https\://github\.com/ansible\-collections/community\.docker/pull/89)\)\.
1991 * docker\_image \- properly support image IDs \(hashes\) for loading and tagging images \([https\://github\.com/ansible\-collections/community\.docker/issues/86](https\://github\.com/ansible\-collections/community\.docker/issues/86)\, [https\://github\.com/ansible\-collections/community\.docker/pull/87](https\://github\.com/ansible\-collections/community\.docker/pull/87)\)\.
1992 * docker\_swarm\_service \- adding support for maximum number of tasks per node \(<code>replicas\_max\_per\_node</code>\) when running swarm service in replicated mode\. Introduced in API 1\.40 \([https\://github\.com/ansible\-collections/community\.docker/issues/7](https\://github\.com/ansible\-collections/community\.docker/issues/7)\, [https\://github\.com/ansible\-collections/community\.docker/pull/92](https\://github\.com/ansible\-collections/community\.docker/pull/92)\)\.
1993
1994 <a id="bugfixes-66"></a>
1995 ### Bugfixes
1996
1997 * docker\_container \- fix healthcheck disabling idempotency issue with strict comparison \([https\://github\.com/ansible\-collections/community\.docker/issues/85](https\://github\.com/ansible\-collections/community\.docker/issues/85)\)\.
1998 * docker\_image \- prevent module failure when removing image that is removed between inspection and removal \([https\://github\.com/ansible\-collections/community\.docker/pull/87](https\://github\.com/ansible\-collections/community\.docker/pull/87)\)\.
1999 * docker\_image \- prevent module failure when removing non\-existent image by ID \([https\://github\.com/ansible\-collections/community\.docker/pull/87](https\://github\.com/ansible\-collections/community\.docker/pull/87)\)\.
2000 * docker\_image\_info \- prevent module failure when image vanishes between listing and inspection \([https\://github\.com/ansible\-collections/community\.docker/pull/87](https\://github\.com/ansible\-collections/community\.docker/pull/87)\)\.
2001 * docker\_image\_info \- prevent module failure when querying non\-existent image by ID \([https\://github\.com/ansible\-collections/community\.docker/pull/87](https\://github\.com/ansible\-collections/community\.docker/pull/87)\)\.
2002
2003 <a id="new-modules-6"></a>
2004 ### New Modules
2005
2006 * community\.docker\.docker\_image\_load \- Load docker image\(s\) from archives
2007 * community\.docker\.docker\_plugin \- Manage Docker plugins
2008
2009 <a id="v1-2-2"></a>
2010 ## v1\.2\.2
2011
2012 <a id="release-summary-86"></a>
2013 ### Release Summary
2014
2015 Security bugfix release to address CVE\-2021\-20191\.
2016
2017 <a id="security-fixes-3"></a>
2018 ### Security Fixes
2019
2020 * docker\_swarm \- enabled <code>no\_log</code> for the option <code>signing\_ca\_key</code> to prevent accidental disclosure \(CVE\-2021\-20191\, [https\://github\.com/ansible\-collections/community\.docker/pull/80](https\://github\.com/ansible\-collections/community\.docker/pull/80)\)\.
2021
2022 <a id="v1-2-1"></a>
2023 ## v1\.2\.1
2024
2025 <a id="release-summary-87"></a>
2026 ### Release Summary
2027
2028 Bugfix release\.
2029
2030 <a id="bugfixes-67"></a>
2031 ### Bugfixes
2032
2033 * docker connection plugin \- fix Docker version parsing\, as some docker versions have a leading <code>v</code> in the output of the command <code>docker version \-\-format \"\{\{\.Server\.Version\}\}\"</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/76](https\://github\.com/ansible\-collections/community\.docker/pull/76)\)\.
2034
2035 <a id="v1-2-0"></a>
2036 ## v1\.2\.0
2037
2038 <a id="release-summary-88"></a>
2039 ### Release Summary
2040
2041 Feature release with one new feature and two bugfixes\.
2042
2043 <a id="minor-changes-41"></a>
2044 ### Minor Changes
2045
2046 * docker\_container \- added <code>default\_host\_ip</code> option which allows to explicitly set the default IP string for published ports without explicitly specified IPs\. When using IPv6 binds with Docker 20\.10\.2 or newer\, this needs to be set to an empty string \(<code>\"\"</code>\) \([https\://github\.com/ansible\-collections/community\.docker/issues/70](https\://github\.com/ansible\-collections/community\.docker/issues/70)\, [https\://github\.com/ansible\-collections/community\.docker/pull/71](https\://github\.com/ansible\-collections/community\.docker/pull/71)\)\.
2047
2048 <a id="bugfixes-68"></a>
2049 ### Bugfixes
2050
2051 * docker\_container \- allow IPv6 zones \(RFC 4007\) in bind IPs \([https\://github\.com/ansible\-collections/community\.docker/pull/66](https\://github\.com/ansible\-collections/community\.docker/pull/66)\)\.
2052 * docker\_image \- fix crash on loading images with versions of Docker SDK for Python before 2\.5\.0 \([https\://github\.com/ansible\-collections/community\.docker/issues/72](https\://github\.com/ansible\-collections/community\.docker/issues/72)\, [https\://github\.com/ansible\-collections/community\.docker/pull/73](https\://github\.com/ansible\-collections/community\.docker/pull/73)\)\.
2053
2054 <a id="v1-1-0"></a>
2055 ## v1\.1\.0
2056
2057 <a id="release-summary-89"></a>
2058 ### Release Summary
2059
2060 Feature release with three new plugins and modules\.
2061
2062 <a id="minor-changes-42"></a>
2063 ### Minor Changes
2064
2065 * docker\_container \- support specifying <code>cgroup\_parent</code> \([https\://github\.com/ansible\-collections/community\.docker/issues/6](https\://github\.com/ansible\-collections/community\.docker/issues/6)\, [https\://github\.com/ansible\-collections/community\.docker/pull/59](https\://github\.com/ansible\-collections/community\.docker/pull/59)\)\.
2066 * docker\_container \- when a container is started with <code>detached\=false</code>\, <code>status</code> is now also returned when it is 0 \([https\://github\.com/ansible\-collections/community\.docker/issues/26](https\://github\.com/ansible\-collections/community\.docker/issues/26)\, [https\://github\.com/ansible\-collections/community\.docker/pull/58](https\://github\.com/ansible\-collections/community\.docker/pull/58)\)\.
2067 * docker\_image \- support <code>platform</code> when building images \([https\://github\.com/ansible\-collections/community\.docker/issues/22](https\://github\.com/ansible\-collections/community\.docker/issues/22)\, [https\://github\.com/ansible\-collections/community\.docker/pull/54](https\://github\.com/ansible\-collections/community\.docker/pull/54)\)\.
2068
2069 <a id="deprecated-features-9"></a>
2070 ### Deprecated Features
2071
2072 * docker\_container \- currently <code>published\_ports</code> can contain port mappings next to the special value <code>all</code>\, in which case the port mappings are ignored\. This behavior is deprecated for community\.docker 2\.0\.0\, at which point it will either be forbidden\, or this behavior will be properly implemented similar to how the Docker CLI tool handles this \([https\://github\.com/ansible\-collections/community\.docker/issues/8](https\://github\.com/ansible\-collections/community\.docker/issues/8)\, [https\://github\.com/ansible\-collections/community\.docker/pull/60](https\://github\.com/ansible\-collections/community\.docker/pull/60)\)\.
2073
2074 <a id="bugfixes-69"></a>
2075 ### Bugfixes
2076
2077 * docker\_image \- if <code>push\=true</code> is used with <code>repository</code>\, and the image does not need to be tagged\, still push\. This can happen if <code>repository</code> and <code>name</code> are equal \([https\://github\.com/ansible\-collections/community\.docker/issues/52](https\://github\.com/ansible\-collections/community\.docker/issues/52)\, [https\://github\.com/ansible\-collections/community\.docker/pull/53](https\://github\.com/ansible\-collections/community\.docker/pull/53)\)\.
2078 * docker\_image \- report error when loading a broken archive that contains no image \([https\://github\.com/ansible\-collections/community\.docker/issues/46](https\://github\.com/ansible\-collections/community\.docker/issues/46)\, [https\://github\.com/ansible\-collections/community\.docker/pull/55](https\://github\.com/ansible\-collections/community\.docker/pull/55)\)\.
2079 * docker\_image \- report error when the loaded archive does not contain the specified image \([https\://github\.com/ansible\-collections/community\.docker/issues/41](https\://github\.com/ansible\-collections/community\.docker/issues/41)\, [https\://github\.com/ansible\-collections/community\.docker/pull/55](https\://github\.com/ansible\-collections/community\.docker/pull/55)\)\.
2080
2081 <a id="new-plugins-1"></a>
2082 ### New Plugins
2083
2084 <a id="connection-1"></a>
2085 #### Connection
2086
2087 * community\.docker\.docker\_api \- Run tasks in docker containers
2088
2089 <a id="inventory"></a>
2090 #### Inventory
2091
2092 * community\.docker\.docker\_containers \- Ansible dynamic inventory plugin for Docker containers\.
2093
2094 <a id="new-modules-7"></a>
2095 ### New Modules
2096
2097 * community\.docker\.current\_container\_facts \- Return facts about whether the module runs in a Docker container
2098
2099 <a id="v1-0-1"></a>
2100 ## v1\.0\.1
2101
2102 <a id="release-summary-90"></a>
2103 ### Release Summary
2104
2105 Maintenance release with a bugfix for <code>docker\_container</code>\.
2106
2107 <a id="bugfixes-70"></a>
2108 ### Bugfixes
2109
2110 * docker\_container \- the validation for <code>capabilities</code> in <code>device\_requests</code> was incorrect \([https\://github\.com/ansible\-collections/community\.docker/issues/42](https\://github\.com/ansible\-collections/community\.docker/issues/42)\, [https\://github\.com/ansible\-collections/community\.docker/pull/43](https\://github\.com/ansible\-collections/community\.docker/pull/43)\)\.
2111
2112 <a id="v1-0-0"></a>
2113 ## v1\.0\.0
2114
2115 <a id="release-summary-91"></a>
2116 ### Release Summary
2117
2118 This is the first production \(non\-prerelease\) release of <code>community\.docker</code>\.
2119
2120 <a id="minor-changes-43"></a>
2121 ### Minor Changes
2122
2123 * Add collection\-side support of the <code>docker</code> action group / module defaults group \([https\://github\.com/ansible\-collections/community\.docker/pull/17](https\://github\.com/ansible\-collections/community\.docker/pull/17)\)\.
2124 * docker\_image \- return docker build output \([https\://github\.com/ansible\-collections/community\.general/pull/805](https\://github\.com/ansible\-collections/community\.general/pull/805)\)\.
2125 * docker\_secret \- add a warning when the secret does not have an <code>ansible\_key</code> label but the <code>force</code> parameter is not set \([https\://github\.com/ansible\-collections/community\.docker/issues/30](https\://github\.com/ansible\-collections/community\.docker/issues/30)\, [https\://github\.com/ansible\-collections/community\.docker/pull/31](https\://github\.com/ansible\-collections/community\.docker/pull/31)\)\.
2126
2127 <a id="v0-1-0"></a>
2128 ## v0\.1\.0
2129
2130 <a id="release-summary-92"></a>
2131 ### Release Summary
2132
2133 The <code>community\.docker</code> continues the work on the Ansible docker modules and plugins from their state in <code>community\.general</code> 1\.2\.0\. The changes listed here are thus relative to the modules and plugins <code>community\.general\.docker\*</code>\.
2134
2135 All deprecation removals planned for <code>community\.general</code> 2\.0\.0 have been applied\. All deprecation removals scheduled for <code>community\.general</code> 3\.0\.0 have been re\-scheduled for <code>community\.docker</code> 2\.0\.0\.
2136
2137 <a id="minor-changes-44"></a>
2138 ### Minor Changes
2139
2140 * docker\_container \- now supports the <code>device\_requests</code> option\, which allows to request additional resources such as GPUs \([https\://github\.com/ansible/ansible/issues/65748](https\://github\.com/ansible/ansible/issues/65748)\, [https\://github\.com/ansible\-collections/community\.general/pull/1119](https\://github\.com/ansible\-collections/community\.general/pull/1119)\)\.
2141
2142 <a id="removed-features-previously-deprecated-4"></a>
2143 ### Removed Features \(previously deprecated\)
2144
2145 * docker\_container \- no longer returns <code>ansible\_facts</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2146 * docker\_container \- the default of <code>networks\_cli\_compatible</code> changed to <code>true</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2147 * docker\_container \- the unused option <code>trust\_image\_content</code> has been removed \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2148 * docker\_image \- <code>state\=build</code> has been removed\. Use <code>present</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2149 * docker\_image \- the <code>container\_limits</code>\, <code>dockerfile</code>\, <code>http\_timeout</code>\, <code>nocache</code>\, <code>rm</code>\, <code>path</code>\, <code>buildargs</code>\, <code>pull</code> have been removed\. Use the corresponding suboptions of <code>build</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2150 * docker\_image \- the <code>force</code> option has been removed\. Use the more specific <code>force\_\*</code> options instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2151 * docker\_image \- the <code>source</code> option is now mandatory \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2152 * docker\_image \- the <code>use\_tls</code> option has been removed\. Use <code>tls</code> and <code>validate\_certs</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2153 * docker\_image \- the default of the <code>build\.pull</code> option changed to <code>false</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2154 * docker\_image\_facts \- this alias is on longer available\, use <code>docker\_image\_info</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2155 * docker\_network \- no longer returns <code>ansible\_facts</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2156 * docker\_network \- the <code>ipam\_options</code> option has been removed\. Use <code>ipam\_config</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2157 * docker\_service \- no longer returns <code>ansible\_facts</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2158 * docker\_swarm \- <code>state\=inspect</code> has been removed\. Use <code>docker\_swarm\_info</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2159 * docker\_swarm\_service \- the <code>constraints</code> option has been removed\. Use <code>placement\.constraints</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2160 * docker\_swarm\_service \- the <code>limit\_cpu</code> and <code>limit\_memory</code> options has been removed\. Use the corresponding suboptions in <code>limits</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2161 * docker\_swarm\_service \- the <code>log\_driver</code> and <code>log\_driver\_options</code> options has been removed\. Use the corresponding suboptions in <code>logging</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2162 * docker\_swarm\_service \- the <code>reserve\_cpu</code> and <code>reserve\_memory</code> options has been removed\. Use the corresponding suboptions in <code>reservations</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2163 * docker\_swarm\_service \- the <code>restart\_policy</code>\, <code>restart\_policy\_attempts</code>\, <code>restart\_policy\_delay</code> and <code>restart\_policy\_window</code> options has been removed\. Use the corresponding suboptions in <code>restart\_config</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2164 * docker\_swarm\_service \- the <code>update\_delay</code>\, <code>update\_parallelism</code>\, <code>update\_failure\_action</code>\, <code>update\_monitor</code>\, <code>update\_max\_failure\_ratio</code> and <code>update\_order</code> options has been removed\. Use the corresponding suboptions in <code>update\_config</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2165 * docker\_volume \- no longer returns <code>ansible\_facts</code> \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2166 * docker\_volume \- the <code>force</code> option has been removed\. Use <code>recreate</code> instead \([https\://github\.com/ansible\-collections/community\.docker/pull/1](https\://github\.com/ansible\-collections/community\.docker/pull/1)\)\.
2167
2168 <a id="bugfixes-71"></a>
2169 ### Bugfixes
2170
2171 * docker\_login \- fix internal config file storage to handle credentials for more than one registry \([https\://github\.com/ansible\-collections/community\.general/issues/1117](https\://github\.com/ansible\-collections/community\.general/issues/1117)\)\.