Preface: I accidentally found a Linux image in docker, and I had the idea of trying, so I came up with this article
Choose the one with the most stars, pull it directly, or execute it from the command line docker run kalilinux/kali-rolling
. According to the introduction, there is no tool, so you need to install it yourself.
Direct run seems to be unable to run. . .
docker images
# 创建容器(第一次运行)
docker run -i -t 198cd6df71ab3 /bin/bash
# 开启容器
docker exec -it 198cd6df71ab3 bash
Change source (Aliyun)
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
install some tools
apt install -y net-tools # ifconfig
apt install -y vim curl inetutils-ping wget
reference
- https://developer.aliyun.com/article/87016