Troubleshooting Docker Installation on Kali Linux
2024-04-20 20:50:31

Kali安装docker:

1
2
3
4
5
6
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo debian-stretch main' > /etc/apt/sources.list.d/docker.list
apt-get install apt-transport-https ca-certificates
apt-get update && sudo apt-get install docker-engine
systemctl start docker

使用加速器加快镜像的下载

1
2
3
vi  /etc/docker/daemon.json
输入一下内容即可
{"registry-mirrors":["https://registry.docker-cn.com"]}

Error:

如果用完docker未通过正确方式关闭,导致下次docker无法开启,那么解决方案:

1
2
3
4
5
rm -rf /var/lib/docker/
vim /etc/docker/daemon.json
add:
{ "graph": "/mnt/docker-data", "storage-driver": "overlay" }

Prev
2024-04-20 20:50:31
Next