@@ -15,21 +15,24 @@ Complete this CTF on TryHackMe:
1515
1616---
1717
18- ### 2. 🐳 Download Prebuilt Docker Image
18+ ### 2. 🐳 Prebuilt Docker Image * (Recommended) *
1919
20- If you prefer a quick setup, you can download the prebuilt Docker image from Docker Hub:
20+ 1 . Pull docker-ctf image from Docker- Hub
2121
2222``` bash
2323sudo docker image pull ilolm/docker-ctf
2424```
2525
26- Then, run the Docker container with the following commands :
26+ 2 . Then, run the Docker container with the following command :
2727
2828``` bash
29- sudo docker container run -itd --rm --privileged --hostname docker-ctf --name docker-ctf -p 8080:8080 -p 22:22 -p 23:23 -p 3306:3306 ilolm/docker-ctf
30- sudo docker container exec -it docker-ctf docker compose -f /home/king/docker-web/docker-compose.yaml up -d
29+ sudo docker container run -it --rm --privileged --hostname docker-ctf --name docker-ctf -p 8080:8080 -p 22:22 -p 23:23 -p 3306:3306 ilolm/docker-ctf
3130```
3231
32+ 3 . After that wait for internal docker compose to be deployed.
33+
34+ * Note: If you use -d option(you will not see the docker compose deployment progress)*
35+
3336---
3437
3538### 3. 🔧 Build the Docker Image manually
@@ -46,20 +49,19 @@ If you prefer to build the Docker image yourself, follow these steps:
46492. Build the Docker image:
4750
4851 ` ` ` bash
49- sudo docker image build -t ctf:latest .
52+ sudo docker image build -t docker- ctf:latest .
5053 ` ` `
5154
52553. Run the Docker container:
5356
5457 ` ` ` bash
55- sudo docker container run -itd --rm --privileged --hostname docker-ctf --name docker-ctf -p 8080:8080 -p 22:22 -p 23:23 -p 3306:3306 ctf
58+ sudo docker container run -itd --rm --privileged --hostname docker-ctf --name docker-ctf -p 8080:8080 -p 22:22 -p 23:23 -p 3306:3306 docker- ctf
5659 ` ` `
5760
58- 4. Start the internal Docker Compose services:
61+ 4. After that wait for internal docker compose to be deployed.
62+
63+ * Note: If you use -d option(you will not see the docker compose deployment progress)*
5964
60- ` ` ` bash
61- sudo docker container exec -it docker-ctf docker compose -f /home/king/docker-web/docker-compose.yaml up -d
62- ` ` `
6365
6466---
6567
0 commit comments