> For the complete documentation index, see [llms.txt](https://cybermuhdupa.gitbook.io/ctfme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybermuhdupa.gitbook.io/ctfme/create-server-ctfd/installing-docker-in-os.md).

# Installing Docker In OS

1. melihat image yang sudah ada

> docker images

1. menarik image dari registry docker

> docker pull "nama image"

1. membuat volume

> docker volume create "volumectflks"

1. membuat container auto start

> docker container create --name ctflks --mount -v "nama volume":"lokasi mount image" --publish 80:8000 ctfd/ctfd docker run -d --restart unless-stopped --name ctflks -v "smkmuhdupa":/opt/CTFd --publish 80:8000 ctfd/ctfd (untuk ctfd) docker run -d --restart unless-stopped --name soalweb3 -v /home/web3:/usr/share/nginx/html --publish 83:80 nginx (untuk soal web meenggunakan volume direktori host)

1. melihat cotainer yang berjalan

> docker container ls

1. melihat semua container yang ada

> docker container ls -a

1. menghapus container "pastikan container status tidak berjalan"

> docker container rm "nama container"

1. menghapus images

> docker rm "nama image"

1. melihat daftar volume yang sudah ada

> docker volume ls

1. masuk ke kontainer

> docker exec -t -i "nama container" /bin/bash
