Fabian Peter Hammerle 4b315e793f readme example: drop caps, no new privs | 5 years ago | |
---|---|---|
Dockerfile | 5 years ago | |
README.md | 5 years ago | |
torrc.template | 5 years ago |
docker hub: https://hub.docker.com/r/fphammerle/onion-service
$ docker run --name onion-service \
-e VIRTUAL_PORT=80 -e TARGET=1.1.1.1:80 \
fphammerle/onion-service
$ docker create --name onion-service \
--env VIRTUAL_PORT=80 \
--env TARGET=1.1.1.1:80 \
--volume onion-key:/onion-service \
--restart unless-stopped \
--cap-drop all --security-opt no-new-privileges \
fphammerle/onion-service:latest
$ docker start onion-service
$ docker exec onion-service cat /onion-service/hostname
abcdefghijklmnop.onion