Docker - Basics just for me
As a base for my pentesting activities I created a preconfigured docker-droplet with digitalocean.
I installed the Kali-Linux docker image:
https://www.kali.org/news/official-kali-linux-docker-images/
then installed metasploit:
http://johan.cc/2015/04/07/kali-linux-and-metasploit-docker/
-----------------
And now let's get to the nitty gritty:
List the docker-containers:
start a docker container:
to use the docker container:
to exit the docker container:
to stop the docker container:
In the Kali-Container:
start Postgres:
start metasploit:
at the end, stop postgres:
and exit the container:
Tips and Tricks:
rename a container:
I will keep this post up-to-date as I find out new stuff!
I installed the Kali-Linux docker image:
https://www.kali.org/news/official-kali-linux-docker-images/
then installed metasploit:
http://johan.cc/2015/04/07/kali-linux-and-metasploit-docker/
-----------------
And now let's get to the nitty gritty:
List the docker-containers:
docker ps -a
start a docker container:
docker start CONTAINER
to use the docker container:
docker attach CONTAINER
to exit the docker container:
exit
to stop the docker container:
docker stop CONTAINER
In the Kali-Container:
start Postgres:
service postgresql start
start metasploit:
msfconsole
at the end, stop postgres:
service stop postgresql
and exit the container:
exit
Tips and Tricks:
rename a container:
docker rename CONTAINER-ID NewName
I will keep this post up-to-date as I find out new stuff!
Trackbacks
Die Kommentarfunktion wurde vom Besitzer dieses Blogs in diesem Eintrag deaktiviert.
Kommentare
Ansicht der Kommentare: Linear | Verschachtelt