Hag*_*aiA 5 python ray docker dockerfile
我有一个使用 ray 的 python 代码。它在我的 Mac 上本地运行,但是一旦我尝试在本地 docker 容器中运行它,我会得到以下信息:
一个警告:
WARNING services.py:1922 -- WARNING: The object store is using /tmp instead of /dev/shm
because /dev/shm has only 67108864 bytes available. This will harm performance! You may
be able to free up space by deleting files in /dev/shm. If you are inside a Docker
container, you can increase /dev/shm size by passing '--shm-size=2.39gb' to 'docker run'
(or add it to the run_options list in a Ray cluster config). Make sure to set this to
more than 30% of available RAM.
Run Code Online (Sandbox Code Playgroud)
警告之后它说:INFO worker.py:1528 -- Started a local Ray instance.
几秒钟后我收到此错误:
core_worker.cc:179: Failed to register worker
01000000ffffffffffffffffffffffffffffffffffffffffffffffff to Raylet. IOError:
[RayletClient] Unable to register worker with raylet. No such file or directory
Run Code Online (Sandbox Code Playgroud)
我已经尝试过:
我使用的是ray 2.1.0版本。
我的 dockerfile 的第一行:(FROM --platform=linux/amd64 python:3.10.9-slim-bullseye
没有 --platform 我无法 pip install ray)
有什么想法我可以做些什么来解决它吗?谢谢你的帮助
归档时间: |
|
查看次数: |
1154 次 |
最近记录: |