kali安装docker环境教程kali 版本2024-3
时间: 2024-10-30 19:02:24 浏览: 15
在Kali Linux 2024.3版本上安装Docker环境,通常包括以下几个步骤:
1. **更新系统**:
```sh
sudo apt-get update
sudo apt-get upgrade
```
2. **添加Docker GPG密钥**:
```sh
curl -fsSL https://download.docker.com/linux/kali/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
```
3. **添加Docker仓库**:
```sh
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/kali stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
```
4. **安装依赖库**:
```sh
sudo apt-get install apt-transport-https ca-certificates
```
5. **安装Docker**:
```sh
sudo apt-get install docker-ce docker-ce-cli containerd.io
```
6. **启动并启用Docker服务**:
```sh
sudo systemctl start docker
sudo systemctl enable docker
```
7. **验证安装**:
```sh
docker run hello-world
```
阅读全文