解决方法 docker run的时候加上--shm-size="15g" 意思是共享15GB内存 然后进入容器后,可以通过 df -h查看内存大小 其中shm就是内存所在: 参考链接: https://blog.csdn.net/zywvvd/article/details/110647825