Host a website on the Dark Web. A docker container is connected to the ToR network and is being used as on Onion Service. It's basically a Dark Web website running in a Docker!
To build the container in x86_T64 Architecture:
sudo docker build -t tordocker -f Dockerfile .To build the container in arm Architecture:
sudo docker build -f tordocker DockerFilePi .To run the image for testing:
sudo mkdir -p /docker/torweb/nginx
sudo docker run \
--name mydarkweb \
-h torr -d tordocker \
-v /docker/torweb/nginx:/var/www/html/ \
--restart unless-stoppedLog into the container with the following:
sudo docker exec -it mydarkweb bashTo find out the link of the onion URL:
cat /var/lib/tor/hidden_service/hostnameTo remove the container:
sudo docker rm -fv mydarkweb