Jetson AGX 用一個小小的 32GB EMMC 放 OS, 就用了 55%
隨便弄個幾 GB docker image, 就很緊張, 這邊嘗試將一些檔案搬到 USB flash,
# stop docker
sudo docker rm -f $(docker ps -aq); docker rmi -f $(docker images -q)
sudo systemctl stop docker
# backup docker
sudo tar -zcC /var/lib docker > /home/nvidia/usb500gb/var_lib_docker-backup-$(date +%s).tar.gz
# assume ~/usb500gb is external USB flash
# symbol link
sudo rm -rf /var/lib/docker/image
sudo rm -rf /var/lib/docker/containers
sudo ln -s /home/nvidia/usb500gb/docker/image /var/lib/docker/image
sudo ln -s /home/nvidia/usb500gb/docker/containers /var/lib/docker/containers
sudo systemctl start docker
沒有留言:
張貼留言