Skip to content

Commit 711c667

Browse files
Merge pull request #524 from CodeNow/always-limit-mem-for-kill-start
always limit memory to 1g for kill start containers
2 parents a6c64e0 + 8b30560 commit 711c667

File tree

1 file changed

+1
-3
lines changed
  • ansible/roles/container_kill_start/tasks

1 file changed

+1
-3
lines changed

ansible/roles/container_kill_start/tasks/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@
6868
become: yes
6969
command: |
7070
docker run \
71-
{% if memory_hard_limit is defined %}
72-
--memory {{ memory_hard_limit | default ( "1g" ) }} \
73-
{% endif %}
71+
--memory {{ memory_hard_limit | default ( "1g" ) }} \
7472
--log-driver={{ log_driver }} \
7573
{% if log_driver == "syslog" %}
7674
--log-opt syslog-facility={{ log_facility }} \

0 commit comments

Comments
 (0)