說明如何在 EVA Lab 的機器上使用 rootless docker
支援以下 container 資源限制
cpu
cpuset
io
memory
pids
支援以下 docker runtimes
docker info | grep "Runtimes"
查看目前支援的 runtimes
nvidia
runc
docker runtime 預設使用 runc
如需使用 GPU,請參照 How to use GPU in container
基於安全性 :Warning:,未來將會開啟防火牆,限制對外服務
如第一次使用此服務,請按照以下步驟進行初次設定
--gpus all
Please refer to Runtime options with Memory, CPUs, and GPUs
--runtime=nvidia
when you needed.
請聯絡網管
By default, the root
user in rootless container is mapped to UID/GID of your host user.
So, the simplest solution is to set the remoteUser
as root
in devcontainer.json
.
For other solutions, you could check microsoft/vscode-remote-release - Issue #4646.
請聯絡網管並截圖 systemctl --user status docker
資訊