第一种方法:
apt -y install veil
/usr/share/veil/config/setup.sh --force --silent
第二种方法:
安装环境:
- 安装https协议、CA证书、dirmngr
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-get install dirmngr
2.添加GPG密钥并添加更新源
curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/ buster stable' | sudo tee /etc/apt/sources.list.d/docker.list
3.系统更新以及安装docker
apt-get update
apt install docker-ce
4.启动docker服务器
service docker start
5.安装compose
apt install docker-compose
6.docker安装测试(hello-world)
docker version 查看docker的版本信息
docker images 查看拥有的images
docker ps 查看docker container
安装veil:
添加
docker
加速镜像地址
vi /etc/docker/daemon.json
{
"registry-mirrors": [
"https://1nj0zren.mirror.aliyuncs.com",
"https://docker.mirrors.ustc.edu.cn",
"http://f1361db2.m.daocloud.io",
"https://registry.docker-cn.com"
]
}
重启
docker
服务
systemctl daemon-reload
systemctl restart docker
拉取
veil
镜像
docker pull mattiasohlsson/veil
拉取成功后,执⾏
docker run -it -v /tmp/veil-output:/var/lib/veil/output:Z mattiasohlsson/veil