错误提示:
RuntimeError: DataLoader worker (pid 83709) is killed by signal: Bus error. It is possible that dataloader’s workers are out of shared memory. Please try to raise your shared memory limit.
解决办法:
1:创建新容器:分配更大的shm参数
2:修改当前容器的shm参数配置(需要有root权限)
A:查看当前容器的ID
B: 查看容器的完整ID
C:进入容器配置目录
cd /var/lib/docker/containers/ac93e518b674fb9def7c0ca22405de8bcfa70d1f5323ad319cee520ac015089c
ls
D:停止docker服务
systemctl stop docker.service
E:修改shm参数
vim hostconfig.json
之前设置的Shmsize 是8G, 可以设置大一些,比如64/128G等
F:重启docker服务
systemctl start docker.service