AI-边缘服务器安装Docker

时间:2023-11-01 16:19:35

边缘服务器安装Docker

  1. docker

    查看docker版本,版本建议20以上

    sudo docker --version

    安装教程

    sudo apt updatesudo apt install docker-ce docker-ce-cli containerd.io
  2. nvidia-docker

    查看nvidia-docker版本

    sudo nvidia-docker --version

    安装教程参考:https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#install-guide

    distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \&& curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \&& curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | \sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.listsudo apt-get updatesudo apt-get install -y nvidia-docker2sudo systemctl restart docker
support.huaweicloud.com/aroo-aislt/aroo_06.html