---
# System prepended metadata

title: Build up the vitis AI environment on your local ubuntu

---

Vitis AI environment on PC
---
ref : https://docs.amd.com/r/2.5-English/ug1414-vitis-ai/Quick-Start

1.Install docker
---
ref : https://docs.docker.com/engine/install/ubuntu/
follow the guidance to install docker on your local ubuntu 

![image](https://hackmd.io/_uploads/HkN7KHjJbg.png)
you can copy following cmd: 
```
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
```

![image](https://hackmd.io/_uploads/SJl4YBiJbe.png)

```
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo systemctl status docker

sudo systemctl start docker
```
![image](https://hackmd.io/_uploads/HJANFHoy-l.png)
 
```
 sudo docker run hello-world
```

If you successfully install docker , it will show : 
![image](https://hackmd.io/_uploads/rkttqrsJbl.png)


2.Set up Vitis AI's environment by docker
---
download the img file of vitis-AI-cpu
```
sudo docker pull xilinx/vitis-ai-cpu:latest
```
![image](https://hackmd.io/_uploads/HJ8b2rsk-x.png)

check the img file is download 
```
sudo docker images
```
![image](https://hackmd.io/_uploads/r1QD2Siybg.png)

3.Start Vitis AI
---
```
./docker_run.sh xilinx/vitis-ai-cpu:latest
```
If success it will be like following : 

![image](https://hackmd.io/_uploads/r1jvlCPM-e.png)
























