我要评分
获取效率
正确性
完整性
易理解

(Optional) Deploying the Containerd Environment

In addition to the Docker container runtime, the video stream cloud phone also supports the containerd runtime. If you choose to run the video stream cloud phone with containerd, refer to this section to deploy containerd-related software packages.

Obtaining Software Packages

Table 1 lists the software packages required for deploying the containerd environment.

Table 1 Containerd-related software packages

Software

Version

Description

How to Obtain

Containerd

v1.7.14

A container runtime.

Containerd binary software package: containerd-1.7.14-linux-arm64.tar.gz

Containerd service file: click here

runC

v1.1.12

runC is a lightweight container runtime that complies with the Open Container Initiative (OCI). It is a dependency component of containerd.

Download link

CNI plugin

v1.4.1

The Container Network Interface (CNI) is a specification and libraries for configuring network interfaces in Linux containers.

Download link

nerdctl

v1.7.5

nerdctl is a Docker-compatible CLI for managing containerd-based containers and images.

Download link

Deploying the Containerd Environment

  1. Download and decompress the containerd binary package to the /usr/local directory.
    1
    2
    3
    4
    mkdir -p /root/containerdenv/downloads
    cd /root/containerdenv/downloads
    wget https://github.com/containerd/containerd/releases/download/v1.7.14/containerd-1.7.14-linux-arm64.tar.gz --no-check-certificate
    tar Cxzvf /usr/local containerd-1.7.14-linux-arm64.tar.gz
    
    Check that the containerd version is v1.7.14.
    1
    containerd --version
    
  2. Download the containerd service file and configure it as a system service.
    1
    2
    3
    4
    5
    6
    cd /root/containerdenv/downloads
    wget https://raw.githubusercontent.com/containerd/containerd/main/containerd.service --no-check-certificate
    mkdir -p /usr/local/lib/systemd/system/
    cp containerd.service /usr/local/lib/systemd/system/
    systemctl daemon-reload
    systemctl enable --now containerd
    
    Check whether the containerd service is started.
    1
    systemctl status containerd
    

    If the command output shown in the preceding figure is displayed, the containerd service has been started.

  3. Download and install runC.
    1
    2
    3
    cd /root/containerdenv/downloads
    wget https://github.com/opencontainers/runc/releases/download/v1.1.12/runc.arm64 --no-check-certificate
    install -m 755 runc.arm64 /usr/local/sbin/runc
    

    Check that the runC version is 1.1.12.

    1
    runc --version
    
  4. Download and install the CNI plugin.
    1
    2
    3
    4
    cd /root/containerdenv/downloads
    mkdir -p /opt/cni/bin
    wget https://github.com/containernetworking/plugins/releases/download/v1.4.1/cni-plugins-linux-arm64-v1.4.1.tgz --no-check-certificate
    tar Cxzvf /opt/cni/bin cni-plugins-linux-arm64-v1.4.1.tgz
    
  5. Download and install nerdctl.
    1
    2
    3
    cd /root/containerdenv/downloads
    wget https://github.com/containerd/nerdctl/releases/download/v1.7.5/nerdctl-1.7.5-linux-arm64.tar.gz --no-check-certificate
    tar Cxzvf /usr/local/bin nerdctl-1.7.5-linux-arm64.tar.gz
    

    Check that the nerdctl version is 1.7.5.

    1
    nerdctl --version
    
  6. Restart the Docker service and start a new terminal for the new container runtime to take effect.
    1
    systemctl restart docker
    

    To switch to the Docker container runtime, remove the software binaries installed in 1 to 5 from the corresponding directories. After the removal is complete, run the preceding command to restart the Docker service and start a new terminal.