Docker error: too many open files

前端 未结 1 1733
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 03:44

I got that error message when creating container.

Error response from daemon: too many open files

But I couldn\'t find any information abo

相关标签:
1条回答
  • 2021-01-19 04:13

    Default limit of number of open files is 1024. You can increase it in two ways:

    1. Run the container with --ulimit parameter:

      docker run --ulimit nofile=5000:5000 <image-tag>
      
    2. Run the container with --privileged mode and execute ulimit -n 5000.

    You can find more information here.

    0 讨论(0)
提交回复
热议问题