For privacy purpose, don't allow the container to use swap.
Geolocalisation will so only stored on RAM, never on disk.
Reference: https://docs.docker.com/config/containers/resource_constraints/
Differential D2807
Prevent Hauk from using swap dereckson on Feb 20 2023, 23:19. Authored by Tags Referenced Files
Subscribers None
Details
For privacy purpose, don't allow the container to use swap. Reference: https://docs.docker.com/config/containers/resource_constraints/
Diff Detail
Event TimelineComment Actions Not really the expected values: $ salt docker-002 state.sls_id hauk roles/paas-docker/containers/hauk test=True (git)-[deploy] docker-002: ---------- ID: hauk Function: docker_container.running Result: None Comment: Container 'hauk' would be replaced Started: 23:37:19.584131 Duration: 1290.788 ms Changes: ---------- container: ---------- HostConfig: ---------- Memory: ---------- new: 268435456 old: 0 MemorySwap: ---------- new: 536870912 old: 0 Summary for docker-002 ------------ Succeeded: 1 (unchanged=1, changed=1) Failed: 0 ------------ Total states run: 1 Total run time: 1.291 s |