Skip to content

Commit

Permalink
fix the port and use docker exec command instead of entering the dock…
Browse files Browse the repository at this point in the history
…er inside
  • Loading branch information
mudongliang committed May 15, 2024
1 parent df6d49e commit c4dc64a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ docker kill pwncollege/dojo
docker rm pwncollege/dojo
git pull
docker build -t pwncollege/dojo "$DOJO_PATH"
docker run --privileged -d -v "${DOJO_PATH}:/opt/pwn.college:shared" -p 22:22 -p 80:80 -p 443:443 --name dojo pwncollege/dojo
docker run --privileged -d -v "${DOJO_PATH}:/opt/pwn.college:shared" -p 22222:22 -p 8880:80 -p 44443:443 --name dojo pwncollege/dojo
```

This will cause downtime when the dojo is rebuilding.

Some changes _can_ be applied without a complete restart, however this is not guaranteed.

If you really know what you're doing (the changes that you're pulling in are just to `ctfd`), inside the `pwncollege/dojo` container you can do the following:
If you really know what you're doing (the changes that you're pulling in are just to `ctfd`), you can do the following:

```sh
dojo update
docker exec dojo dojo update
```

Note that `dojo update` is not guaranteed to be successful and should only be used if you fully understand each commit/change that you are updating.
Note that `docker exec dojo dojo update` is not guaranteed to be successful and should only be used if you fully understand each commit/change that you are updating.

## Customization

Expand Down

0 comments on commit c4dc64a

Please sign in to comment.