Define size for /dev/shm on container engine

前端 未结 2 885
渐次进展
渐次进展 2020-12-12 21:10

I\'m running Chrome with xvfb on Debian 8. It works until I open a tab and try to load content. The process dies silently...

Fortunately, I have gotten it to run smo

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 21:25

    Mounting an emptyDir to /dev/shm and setting the medium to Memory did the trick!

    spec:
      volumes:
      - name: dshm
        emptyDir:
          medium: Memory
      containers:
      - image: gcr.io/project/image
        volumeMounts:
          - mountPath: /dev/shm
            name: dshm
    

提交回复
热议问题