Merge pull request #29 from giper45/main
Add --rm flag when running Docker container
This commit is contained in:
commit
5f366a6b8e
|
@ -11,14 +11,14 @@ It uses Log4j 2.14.1 (through `spring-boot-starter-log4j2` 2.6.1) and the JDK 1.
|
|||
Run it:
|
||||
|
||||
```bash
|
||||
docker run --name vulnerable-app -p 8080:8080 ghcr.io/christophetd/log4shell-vulnerable-app
|
||||
docker run --name vulnerable-app --rm -p 8080:8080 ghcr.io/christophetd/log4shell-vulnerable-app
|
||||
```
|
||||
|
||||
Build it yourself (you don't need any Java-related tooling):
|
||||
|
||||
```bash
|
||||
docker build . -t vulnerable-app
|
||||
docker run -p 8080:8080 --name vulnerable-app vulnerable-app
|
||||
docker run -p 8080:8080 --name vulnerable-app --rm vulnerable-app
|
||||
```
|
||||
|
||||
## Exploitation steps
|
||||
|
|
Loading…
Reference in New Issue
Block a user