Run docker containers with /tmp and /var/tmp mounted to tmpfs (#1313)

This commit is contained in:
pavel-shirshov 2018-01-16 23:20:13 -08:00 committed by lguohan
parent c568e8fd27
commit 22a3e4817a

View File

@ -63,6 +63,8 @@ start() {
{%- if docker_container_name != "database" %}
-v /usr/share/sonic/device/$PLATFORM/$HWSKU:/usr/share/sonic/hwsku:ro \
{%- endif %}
--tmpfs /tmp \
--tmpfs /var/tmp \
--name={{docker_container_name}} {{docker_image_name}}:latest
postStartAction