Environment Setup
Download the required image from DockerHub https://hub.docker.com/r/sophgo/tpuc_dev :
$ docker pull sophgo/tpuc_dev:latest
If you are using docker for the first time, you can execute the following commands to install and configure it (only for the first time):
$ sudo apt install docker.io
$ sudo systemctl start docker
$ sudo systemctl enable docker
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ newgrp docker
Make sure the installation package is in the current directory, and then create a container in the current directory as follows:
$ docker run --privileged --name myname -v $PWD:/workspace -it sophgo/tpuc_dev:latest
# "myname" is just an example, you can use any name you want
Subsequent chapters assume that the user is already in the /workspace directory inside docker.