docker load 導(dǎo)入已打包好的tar鏡像,但報(bào)以下錯(cuò)誤:
ApplyLayer exit status 1 stdout: stderr: unlinkat ...: invalid argument
docker 版本為 20.10.24
解決辦法:
1岁疼、關(guān)閉docker
sudo systemctl stop docker
2诲侮、修改/etc/docker/daemon.json乾戏,若沒(méi)有則創(chuàng)建模暗,增加以下內(nèi)容:
{
"storage-driver": "vfs"
}
3岸晦、啟動(dòng)docker
sudo systemctl start docker
最后再重新導(dǎo)入欧啤,問(wèn)題解決。
參考資料:
https://forum.proxmox.com/threads/docker-failed-to-register-layer-applylayer-exit-status-1-stdout-stderr-unlinkat-var-log-apt-invalid-argument.119954/
https://docs.docker.com/storage/storagedriver/vfs-driver/