community.docker/changelogs/fragments
Shane St Savage a512e7fb9e
feat: allow unlimited memory_swap in docker_container (#138)
* feat: allow unlimited memory_swap in docker_container

summary: in docker_container, allow `memory_swap: values
`unlimited` and `-1` for unlimited container swap usage.

`--memory-swap=-1` is a valid docker run value allowing
unlimited swap usage. `docker_container` should allow
setting this value via `memory_swap` values `unlimited`
and `-1` as it sometimes must explicitly be set to prevent
docker from attempting to limit swap usage to double the
`--memory` value by default. In rootless docker environments,
attempting to set `memory-swap` usage limits will result in an error
if the user doesn't have the ability to do so. Allowing explicit
unlimited swap usage via docker_container will prevent these errors.

https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details

* Update tests/integration/targets/docker_container/tasks/tests/options.yml

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-05-10 20:24:04 +02:00
..
.keep Initial commit 2020-10-30 07:05:51 +01:00
1.6.0.yml Prepare 1.6.0 release. 2021-05-10 17:57:22 +02:00
12-correct_pull_wo_starting.yaml docker_compose: fix #12 (#119) 2021-05-04 07:53:38 +02:00
125-correct-error-message-for-docker-sdk-version.yaml adds missing changelog fragment file (#126) 2021-04-17 13:26:15 +02:00
134-tls_hostname.yml Deprecate default for tls_hostname (#134) 2021-05-04 07:50:33 +02:00
135-docker_plugin-config.yml Configure plugin after installing it. (#135) 2021-05-07 07:14:28 +02:00
136-docker_swarm_service-fix-idempotence-bug.yml docker_swarm_service: fix crash during idempotence check if published_port is not specified (#136) 2021-05-05 08:00:22 +02:00
138-docker_container-allow-memory-swap-unlimited.yml feat: allow unlimited memory_swap in docker_container (#138) 2021-05-10 20:24:04 +02:00