community.docker/tests
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
..
integration/targets feat: allow unlimited memory_swap in docker_container (#138) 2021-05-10 20:24:04 +02:00
sanity ansible/ansible's stable-2.11 branch has been created. (#117) 2021-04-06 05:09:38 +00:00
unit Docker inventory plugin (#61) 2020-12-30 08:44:24 +01:00
utils Use Ansible's codecov uploader. (#130) 2021-04-30 04:28:28 +02:00
config.yml Add ansible-test config file. (#132) 2021-05-01 22:37:18 +02:00
requirements.yml Initial cleanup. 2020-10-30 07:05:51 +01:00