![]() Sudo docker run -net=host -it kali:vN /bin/bash Deleting an Image ![]() To run this saved image, use the following command where N is the same number you used above, which will be the last version you created. Sudo docker commit $(sudo docker ps -lq) kali:vN This will take a bit of time and will produce a SHA256 hash of the new image when it is finished. This will create a new Docker image with the name kali:vN. If you need your data to persist, then immediately after exiting Docker, run the following command where N is simply the next highest number. The next time you need Kali, you will run the same command as above but you will use the new image name you create. To do that you will need to create an updated Kali image using the commands below. ![]() However, if you are running a tool like Metasploit and loading Nmap scans into the database, you will want those changes to persist the next time you run the Kali image. ![]() Each time you need Kali, just run the above command. If you are doing any work that does not need to be saved on the Kali image, such as running fierce, theHarvester, dirb, etc, then you can exit the Docker image when you are finished and there is nothing else to do. This will give you a root shell in Kali just like you typically have. Sudo docker run -net=host -it kali:v1 /bin/bash. Once the Docker setup is complete, you can access the Kali server by running:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |