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!

You have to start somewhere...

I suspect nobody will ever read this Blog, so I will keep the introduction short.
My aim with this blog is to create a kind of knowledge-base for myself that is not existing in a walled garden.
Maybe somebody might even find this stuff helpful...