Installing TritonServer SDK
This section describes how to install Docker using the Yum repository, and then use Docker to pull the TritonServer SDK image and install it.
- Use PuTTY to log in to a server as the root user.
- Go to the Yum configuration directory.
cd /etc/yum.repos.d/
- Add the openEuler image repository.
- Go to /etc/yum.repos.d and create an openEuler.repo file.
cd /etc/yum.repos.d/ vi openEuler.repo
- Press i to enter the insert mode and add the following content to the openEuler.repo file:
[OS] name=OS baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/OS/$basearch/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/OS&arch=$basearch metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/OS/$basearch/RPM-GPG-KEY-openEuler [everything] name=everything baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/everything/$basearch/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/everything&arch=$basearch metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/everything/$basearch/RPM-GPG-KEY-openEuler [EPOL] name=EPOL baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/EPOL/main/$basearch/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/EPOL/main&arch=$basearch metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/OS/$basearch/RPM-GPG-KEY-openEuler [debuginfo] name=debuginfo baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/debuginfo/$basearch/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/debuginfo&arch=$basearch metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/debuginfo/$basearch/RPM-GPG-KEY-openEuler [source] name=source baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/source/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever&arch=source metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/source/RPM-GPG-KEY-openEuler [update] name=update baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/update/$basearch/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/update&arch=$basearch metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/OS/$basearch/RPM-GPG-KEY-openEuler [update-source] name=update-source baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/update/source/ metalink=https://mirrors.openeuler.org/metalink?repo=$releasever/update&arch=source metadata_expire=1h enabled=1 gpgcheck=1 gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/source/RPM-GPG-KEY-openEuler
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Go to /etc/yum.repos.d and create an openEuler.repo file.
- Install Docker.
yum install -y docker-engine
- Verify the installed Docker version.
docker --version
If the version is 18.09.0 in the command output, the installation is successful.
- Configure the Docker image repository and proxy.
- Create a Docker global configuration file.
sudo mkdir -p /etc/docker sudo vi /etc/docker/daemon.json
- Press i to enter the insert mode and add the following content to the daemon.json file:
{ "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn", "https://registry.docker-cn.com" ], "insecure-registries":[ "production.cloudflare.docker.com", "nvcr.io" ], "data-root": "/home/docker", "log-opts": { "max-size": "50m", "max-file": "1" } }
The downloaded image repository is stored in data-root, which is the root directory where the Docker daemon stores data. The size of the Docker image of TritonServer SDK 24.05 is about 11.3 GB. Ensure that the specified directory has enough space.
- Press Esc, type :wq, and press Enter to save the file and exit.
- Create a Docker proxy configuration file.
sudo mkdir -p /etc/systemd/system/docker.service.d sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
- Press i to enter the insert mode and add the following content to the http-proxy.conf file.Set the user name, password, proxy IP address, and proxy port based on your requirements.
[Service] Environment="HTTP_PROXY=http://Username:Password@Proxy_IP_address:Proxy_port" Environment="HTTPS_PROXY=https://Username:Password@Proxy_IP_address:Proxy_port" Environment="NO_PROXY=localhost,127.0.0.1,huawei.com"
- Press Esc, type :wq, and press Enter to save the file and exit.
- Reload the daemon file and restart Docker.
sudo systemctl daemon-reload sudo systemctl restart docker
- Create a Docker global configuration file.
- Pull the TritonServer SDK Docker image.
docker pull nvcr.io/nvidia/tritonserver:24.05-py3-sdk
- Verify and install the image.
docker images | grep 24.05-py3-sdk
If the corresponding information is displayed, the installation is successful.
Parent topic: Configuring the Compilation Environment