Here you can find a docker-compose
file to start all the required services and applications we are going to use throughout the Network Security course and its laboratory exercises.
First, compose up the containers.
For the kali environment, open https://localhost:6901/
in your browser, and continue with credentials:
User : kasm_user
Password : password
To use bloodhound
, you have to start the neo4j
service:
sudo neo4j start
sudo apt update && sudo apt upgrade
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt update && sudo apt upgrade
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker --version
sudo docker run hello-world
sudo apt install git
git --version
git clone https://github.com/RicYaben/DTUNetSec.git
sudo docker compose up -d --build
For the Kali environment, open https://localhost:6901/
in your browser, and continue with credentials:
User : kasm_user
Password : password
Don't execute the following commands if you want to run kali
If you want to completely remove docker from your system, run the following commands:
dkg -l | grep -i docker
sudo apt purge docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin containerd.io
ls /var/lib/docker
sudo rm -rf /var/lib/docker
cat /etc/group | grep docker
sudo groupdel docker
docker --version
To display the manual or help options for Docker:
man docker
docker --help
To list all Docker images available on your system:
docker images
To list active and inactive containers:
docker ps
docker ps -a
To see available docker compose
options (specified in .yml file):
docker compose --help
To manage running containers:
docker compose stop
docker compose start
To clean up and remove unused containers:
docker compose rm
docker compose down --rmi local
To manage specific containers from the system:
sudo docker rmi <name>
docker stop <name>
docker rm <name>
docker rmi <name>