README: a little example so I remember the steps

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2024-06-21 14:56:40 -04:00
parent a237673e5c
commit e778fa424e
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED

View file

@ -1,2 +1,21 @@
# 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
```