Installation of Docker in Kali Linux and Basics.

Sunday, 5 July 2020

Today, we will Install docker in Kali linux (Fresh Installation, Search for docker image, Pull docker image and Run|Stop docker image



Follow the steps shown in video and below are the commands to be used

Installation of Docker in Kali linux 

Commands:   (Here scerets are revealed)
Check Docker is present or not 
# sudo docker --version

# sudo curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# sudo echo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' | sudo tee /etc/apt/sources.list.d/docker.list
# sudo apt-get update
# sudo apt-get install docker-ce  (for fresh installation)
# sudo systemctl start docker
# sudo systemctl enable docker
# sudo docker --version 

Search docker image 
# sudo docker search xvwa

Pull docker images in docker 
# sudo docker "image name"

Check all docker Images installed
# sudo docker image ls

Run docker image 
# sudo docker run --name "anyname" -d -P "image name"
example: # sudo docker run --name xvwa -d  -P tuxotron/xvwa

To stop docker image or running process 
# sudo docker stop "name"

To check running container id
# sudo docker ps -aq

To stop docker container id
# sudo docker stop "container id"

To rm docker container id 
# sudo docker rm "container id"

To remove docker image
# sudo docker rm "image name"

Run Docker image outside the Kali Linux VM 
  check your ip with help of ifconfig and assign port 
# sudo ifconfig

# sudo docker run --name xvwa -d -p (yourip):80:80 tuxotron/xvwa

Happy Hacking !!!!
Pprasoon

#Docker #KaliLinux #DockerInstallation #Dockerpullimage #DockerSerachImage

0 comments: