2. Environment Setup
Download the required image from DockerHub https://hub.docker.com/r/sophgo/tpuc_dev :
$ docker pull sophgo/tpuc_dev:v2.2
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):
1$ sudo apt install docker.io
2$ sudo systemctl start docker
3$ sudo systemctl enable docker
4$ sudo groupadd docker
5$ sudo usermod -aG docker $USER
6$ 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:v2.2
# "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.