初次尝试docker build
1 |
|
1 |
|
docker login -u username -p ‘password’
mkdir -p ~/app/tor && cd ~/app/tor && nano Dockerfile && nano docker-compose.yml
echo ‘SocksPort 0.0.0.0:9050’ > torrc
docker build -t limour/tor .
docker image ls grep limour/tor
sudo docker network create sswitch
sudo docker-compose up -d && sudo docker-compose logs
# sudo docker-compose down
sudo docker-compose logs tail
测试效果
docker run –rm –net=sswitch alpine/curl https://check.torproject.org/api/ip
docker run –rm –net=sswitch alpine/curl –socks5 tor:9050 https://check.torproject.org/api/ip
初次尝试docker build
https://b.limour.top/2149.html