README: a little example so I remember the steps
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
a237673e5c
commit
e778fa424e
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -1,2 +1,21 @@
|
||||||
# tor-ctr
|
# tor-ctr
|
||||||
|
|
||||||
|
This container with `NET_ADMIN` and `NET_RAW` privileges is fully inside the tor router that it spins up.
|
||||||
|
|
||||||
|
Which is nice for itself, but then other container can link and use the network as well.
|
||||||
|
|
||||||
|
Used the prior work of [tor-box](https://git.batts.cloud/vbatts/tor-box).
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cd tor-ctr/
|
||||||
|
docker-compose up --build
|
||||||
|
```
|
||||||
|
|
||||||
|
Then from another shell:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker run -it --rm --network=container:tor-ctr_tor_1 r.batts.cloud/debian:bookworm
|
||||||
|
curl ip.batts.cloud/json
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue