Install kali with docker under centos

Principle: Docker Three Musketeers [Mirror, Container, Warehouse]

Use tool: centos7 (the best version of the kernel version) + network cable

 

 

Step 1: Check whether docker is installed

[root@huangxv~]# rpm -qa|grep docker

 

Step 2: List installable packages

root@huangxv~]# yum list docker-ce --showduplicates |
sort -r

 

Step 3: Choose an installation package to install

[root@huangxv~]# yum install docker-ce

 

The fourth step: start docker and set up to run

[root@huangxv~]# systemctl start docker

[root@huangxv~]# systemctl enable docker

 

Step 5: Search kali
[root @ huangxv ~] # docker search kali

 

Step 6: pull the selected image

[root @ huangxv ~] # docker pull calilinux / kali

 

Step 7: label the image

[root @ huangxv ~] # docker tag calilinux / kali: latest kali
latest

View local mirror
[root @ huangxv ~] # docker images

 

Eighth: Run kali in the container and print out the harmonious language.

[root@huangxv~]# docker run kali /bin/echo "Funny mud
o pee world"

(To be continued)

 

Guess you like

Origin www.cnblogs.com/hxlinux/p/12677451.html