docker pull断点续传设置
Docker. How to resume downloading image when interrupted?However, I was able to enable docker pull to resume interrupted downloads by adding
"features": {"containerd-snapshotter": true}
to
/etc/docker/daemon.json
step 1。 run ok
sudo mkdir /etc/docker
vi /etc/docker/daemon.json
{
"features": {"containerd-snapshotter": true}
}
step 2. add features
修改/etc/docker/daemon.json
{
"features": {"containerd-snapshotter": true}
}
step 3.Then make it look like:
{
"registry-mirrors": ["https://jockerhub.com"],
"features": {
"containerd-snapshotter": true
}
}
features.containerd-snapshotter:启用 Containerd 快照功能,这是 Docker 的一个核心功能,确保在需要时设置为 true
step 4.
And restart docker.
sudo systemctl restart docker
step 6.test
中间卡住,ctrl+c中断再来
run ok
https://blog.csdn.net/weixin_40465062/article/details/138290828