
나는 Docker Desktop(4.16.3)을 가지고 놀고 있는데슬럼. 을 실행하면 slurmd
다음과 같은 불만 사항과 함께 오류가 발생합니다.
common_cgroup_instantiate: unable to create cgroup '/sys/fs/cgroup/freezer/slurm' : Read-only file system
unable to build slurm cgroup for ns freezer: Read-only file system
unable to create slurm freezer xcgroup
Couldn't load specified plugin name for proctrack/cgroup: Plugin init() callback failed
cannot create proctrack context for proctrack/cgroup
error: slurmd initialization failed
해결책을 찾기 위해 여기저기 찾아보았으나 답을 찾지 못했습니다.
systemd.unified_cgroup_hierarchy=1
grub과 함께 다음 명령을 사용하는 한 가지 솔루션이 있습니다 . 그러나 grub은 기본 이미지에 존재하지 않으며 어떻게든 다음과 인터페이스하기 때문에 경고를 받는 것 같습니다.systemd
또한 누락된 디렉토리를 만들고 권한을 변경하는 서투른 접근 방식을 시도했지만 여전히 읽기 전용 오류가 발생합니다.
RUN mkdir -p /sys/fs/cgroup/freezer/slurm:
#0 mkdir: cannot create directory '/sys/fs/cgroup/freezer/slurm': Read-only file system
어떤 도움이라도 대단히 감사하겠습니다.
답변1
/sys/fs/cgroup
호스트의 볼륨을 컨테이너에 매핑해 보세요 .
아래 그림과 같이.
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup