Change docker image storage location to SSD on your NVIDIA Xavier
1. Install a SSD on the device and give it a mount name [1]
2. Copy docker to the SSD mount folder and add "data-root" parameter in the daemon script. [2]
$ sudo service docker stop
$ sudo rsync -aP /var/lib/docker/ /path/to/your/docker
$ gedit /etc/docker/daemon.json
$ sudo mv /var/lib/docker /var/lib/docker.old
$ sudo service docker start
3. Pull PyTorch container and run [3]
$ docker pull nvcr.io/nvidia/l4t-pytorch:r32.6.1-pth1.9-py3
$ sudo docker run -it --rm --runtime nvidia --network host -v /home/user/project:/location/in/container nvcr.io/nvidia/l4t-pytorch:r32.6.1-pth1.9-py3
Another useful commands:
$ sudo docker info
$ sudo docker images
$ sudo rmi REPOSITORY:TAG [4]
$ cat /etc/nv_tegra_release
$ systemctl start docker
Reference:
[1] Install Solid State Disk - Jetson AGX Xavier
[2] https://forums.developer.nvidia.com/t/change-docker-image-storage-location-to-nvme-ssd/156882
[3] docker pull nvcr.io/nvidia/l4t-pytorch:r32.6.1-pth1.9-py3
[4] https://docs.docker.com/engine/reference/commandline/rmi/
[6] https://www.guguweb.com/2019/02/07/how-to-move-docker-data-directory-to-another-location-on-ubuntu/
留言
張貼留言