Harun Mansor
  • ⭕About ME
  • Writeups
    • 3108 CTF (2024)
  • Projects
    • SSH Architecure using IDS, IPS, Port Knocking and SIEM System
    • Active Directory Attack SImulation Lab
    • THM - Shellcode
    • Script - Gather Emails
    • Script - Nmap Scans
    • Script - Bash
  • NOTES
    • Docker Guides
    • Web Security Under-the-hoods
Powered by GitBook
On this page
  1. NOTES

Docker Guides

Basic docker walk-arounds

PreviousScript - BashNextWeb Security Under-the-hoods

Last updated 4 months ago

Was this helpful?

CtrlK

Was this helpful?

Make sure docker is installed correctly. Use below commands to do it

sudo apt update
sudo apt upgrade
sudo apt install docker.io
sudo apt install docker-compose

If you are given docker files to spin up, look for docker-compose.yaml and open up the terminal in the same directory. This is required in order to spin up the docker environment. Run the below command while in the same directory.

sudo docker-compose up
sudo docker ps -a //list all containers
sudo docker-compose stop //stops the docker
sudo docker rm [container id] //delete desired containers