If you are un-sure, this is the Docker image you should be using.
This image is updated weekly, using the kali-rolling repository that all Kali users are using by default.
Please note, there are no tools by default. Instead, either do:
More Information
具体操作如下:
1、进入镜像
# docker run -ti <image name>:<tag name> /bin/bash
2、镜像中打包
# tar --exclude=/proc --exclude=/sys --exclude=docker-tmp.tar -cvf docker-tmp.tar /
# 新开一个Terminal窗口
3、复制打包后镜像
# docker cp <container id>:/docker-tmp.tar .
4、导入新镜像
# cat docker-tmp.tar | docker import - thunderboltlei/kalilinux-rolling:202209182226
5、上传新镜像
# docker push thunderboltlei/kalilinux-rolling:202209182226
6、启动镜像 - terminal 操作
# docker run -it --name kali -e DISPLAY=192.168.30.104:0 --privileged=true thunderboltlei/kalilinux-rolling:202209191101 /bin/bash
# 模板:
$ docker run --privileged -d -p <端口映射 1> ... -p <端口映射 n> --restart="always" <用户名>/<repository name>:<tag name> /usr/sbin/init
实例:$ docker run --network x8x_bridge --hostname k8smaster --ip 172.18.0.2 --privileged -d -p 3306:3306 -p 6379:6379 --restart="always" thunderboltlei/centos-db:202208011630 /usr/sbin/init
模板:$ docker exec -it <container id> /bin/bash
7、启动镜像 - 界面化操作
# docker run -it --name kali -e DISPLAY=192.168.30.104:0 --privileged=true thunderboltlei/kalilinux-rolling:202209191101 /bin/bash
注意:
(1)-e DISPLAY=192.168.30.104:0 宿主机的IP
宿主机启动 socat
Content type
Image
Digest
sha256:10d26998c…
Size
6.5 GB
Last updated
about 4 years ago
docker pull thunderboltlei/kalilinux-rolling:202209191101