Refer to the official Docker documentation.
Refer to the Tsinghua University Open Source Software Mirror.
If you have previously installed Docker, remove it first:
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce
To avoid using sudo
for Docker commands, add your user to the Docker group:
sudo groupadd docker
sudo usermod -aG docker $USER
You will need to log out or reboot for this to take effect.
Refer to the official NVIDIA documentation.
Go to the ADE CLI releases page and download the latest version for your system.
mv ade+x86_64 ade
# or mv ade+aarch64 ade
chmod +x ade
sudo mv ade /usr/local/bin
Add the following code to your .zshrc
or .bashrc
:
if [ -n "$ZSH_VERSION" ]; then
eval "$(_ADE_COMPLETE=source_zsh ade)"
else
eval "$(_ADE_COMPLETE=source ade)"
fi
./build_docker.sh
~/ws
):cd ~/ws
touch .adehome
This indicates that Docker will mount ~/ws
as the container’s home directory. You can also mount other directories.
.aderc
:cd ~/ws
touch .aderc
Add the following to .aderc
:
export ADE_DOCKER_RUN_ARGS="--cap-add=SYS_PTRACE \
--privileged \
--net=host \
--add-host ade:127.0.0.1 \
-v ${HOME}/.Xauthority:${HOME}/.Xauthority:ro \
-e XAUTHORITY=${HOME}/.Xauthority \
-v /dev:/dev \
"
export ADE_IMAGES=" \
orbbecsdk-env:x86_64_20240711 \
"
Navigate to the directory containing .aderc
:
ade start
ade enter
You should now be inside the Docker container.