Boot Docker on VisionFive 2

Perform the following steps to boot Docker on VisionFive 2:

  1. Execute the following commands in order:
    dockerd
    systemctl start docker
  2. Execute the following command:
    systemctl status docker
    Figure 1. Example Output
    Note: If the output results are not enbaled, Active: active (running), StarFive recommends you to restart the system and execute this step again.
  3. Execute the following command:
    docer info
    Figure 2. Example Output
  4. Execute the following command to run hello-world:
    docker run --rm hello-world
    Figure 3. Example Output
  5. Download Alpine Docker image of the RISC-V version and run the following:
    docker pull riscv64/alpine:edge
    docker run -it alpine:edge
    Figure 4. Example Command and Output
  6. Execute the following commands in Docker image to verify:
    cat /etc/os-release
    ifconfig
    arp –a
    ping <Website>
    Tip: Before executing the commands, you need to replace <Website> with any URL.
    Figure 5. Example Command and Output

    As shown in the above output, you have successfully run Docker on VisionFive 2!