Skip to content

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:
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

Keine Trackbacks

Kommentare

Ansicht der Kommentare: Linear | Verschachtelt

Noch keine Kommentare

Die Kommentarfunktion wurde vom Besitzer dieses Blogs in diesem Eintrag deaktiviert.