Run docker containers with /tmp and /var/tmp mounted to tmpfs (#1313)
This commit is contained in:
parent
c568e8fd27
commit
22a3e4817a
@ -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
|
||||
|
Reference in New Issue
Block a user