Skip to content

Commit 22a3e48

Browse files
pavel-shirshovlguohan
authored andcommitted
Run docker containers with /tmp and /var/tmp mounted to tmpfs (#1313)
1 parent c568e8f commit 22a3e48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

files/build_templates/docker_image_ctl.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ start() {
6363
{%- if docker_container_name != "database" %}
6464
-v /usr/share/sonic/device/$PLATFORM/$HWSKU:/usr/share/sonic/hwsku:ro \
6565
{%- endif %}
66+
--tmpfs /tmp \
67+
--tmpfs /var/tmp \
6668
--name={{docker_container_name}} {{docker_image_name}}:latest
6769

6870
postStartAction

0 commit comments

Comments
 (0)