轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
tor-alpine

chris579/tor-alpine

chris579

Simple, minimal and self updating docker image for Tor based on Alpine Linux.

4 次收藏下载次数: 0状态:社区镜像维护者:chris579仓库类型:镜像最近更新:6 个月前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。
点击查看

tor-alpine

https://github.com/chris579/tor-alpine/workflows/Docker%20Image%20CI/badge.svg](https://github.com/chris579/tor-alpine/actions) https://images.microbadger.com/badges/version/chris579/tor-alpine.svg](https://hub.docker.com/r/chris579/tor-alpine) https://images.microbadger.com/badges/image/chris579/tor-alpine.svg](https://microbadger.com/images/chris579/tor-alpine "Get your own image badge on microbadger.com") https://img.shields.io/docker/pulls/chris579/tor-alpine.svg](https://hub.docker.com/r/chris579/tor-alpine) https://img.shields.io/docker/stars/chris579/tor-alpine.svg](https://hub.docker.com/r/chris579/tor-alpine) https://img.shields.io/github/license/chris579/tor-alpine.svg](https://github.com/chris579/tor-alpine/blob/master/LICENSE)

Simple, minimal and self updating docker image for Tor based on Alpine Linux.
This image comes predefined for hidden service modes with SOCKS5 but can be configured easily to run as a bridge, relay or exit node. You can find example configs for that here.

Ports

Ports are depending on your configuration.

Volumes

/var/lib/tor - data directory
/etc/localtime:/etc/localtime - for precise local time
/etc/tor/torrc.config - to override the default config

Getting started

Installation

Up-to-date builds are available on https://hub.docker.com/r/chris579/tor-alpine. This image is build daily and published if a new version is available.

docker pull chris579/tor-alpine

Quickstart

docker run --name tor -v ./data:/var/lib/tor -v /etc/localtime:/etc/localtime -p 127.0.0.1:9050:9050 chris579/tor-alpine

or if using docker-compose

yaml
version: '2'
services:
  tor:
    image: chris579/tor-alpine
    container_name: tor
    ports:
     - "127.0.0.1:9050:9050"
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime
      - ./data:/var/lib/tor

This configuration will expose the SOCKS5 port to your local machine. You should not bind this port to a public network unless you know what you do.

Advanced configuration

For relay modes the config needs to be adjusted. You can mount your own config file to /etc/tor/torrc.config.

Replace <yourEmail> with a contact mail address. In case something is wrong with your node you will be contacted there. You might want to obscure it because it will be displayed and indexed in plain text by search engines.

Replace <yourNickName> with a nickname of your choice. You and others will be able to find the node with this name. This is helpful when searching for your node.

Bridge configuration

A tor brige is a not publically listed middle relay. It works like a normal middle relay but is especially suitable for situations when public tor relays are blocked in some way by ISPs or governments.

ORPort 9001
Nickname <yourNickName>
ContactInfo <yourEmail>
ExitRelay 0
ExitPolicy reject *:*
BridgeRelay 1

Make sure to expose port 9001
-p 9001:9001

or if using docker-compose

yaml
ports:
  - "9001:9001"

Middle relay

A middle relay is one of the first few relays traffic flows through. Due to the nature of Tor it is ***ed legally safe to host a middle relay because you are not able to look inside the packages (and therefore can't log them). After some time your relay will also become available as a entry node if it is ***ed stable. Entry guards are a sensitive point in the Tor network as they are seeing the blank IPs of their users. You can read more about that here. Most hosters are agreeing on providing a Tor relay on your server.

ORPort 9001
Nickname <yourNickName>
ContactInfo <yourEmail>
ExitRelay 0
ExitPolicy reject *:*

Make sure to expose port 9001
-p 9001:9001

or if using docker-compose

yaml
ports:
  - "9001:9001"

Exit relay

An exit relay is the last point where traffic is running through. In exit mode your server will reach out to the internet, forwarding the original request of the user. This also means that law enforcement or ISPs will just see your server accessing these resources. A lot of hosters are prohibiting/blocking exit relays because they fear prosecution. Before running an exit relay make sure to contact your hoster about his opinion to exit relays.

This sample configuration is using a reduced exit policy list. This limits the number of ports that can be used your node as an exit relay.

ORPort 9001
Nickname <yourNickName>
ContactInfo <yourEmail>

# Reduced exit policy from
# https://trac.torproject.org/projects/tor/wiki/doc/ReducedExitPolicy
ExitPolicy accept *:20-23     # FTP, SSH, telnet
ExitPolicy accept *:43        # WHOIS
ExitPolicy accept *:53        # DNS
ExitPolicy accept *:79-81     # finger, HTTP
ExitPolicy accept *:88        # kerberos
ExitPolicy accept *:110       # POP3
ExitPolicy accept *:143       # IMAP
ExitPolicy accept *:194       # IRC
ExitPolicy accept *:220       # IMAP3
ExitPolicy accept *:389       # LDAP
ExitPolicy accept *:443       # HTTPS
ExitPolicy accept *:464       # kpasswd
ExitPolicy accept *:465       # URD for SSM (more often: an alternative SUBMISSION port, see 587)
ExitPolicy accept *:531       # IRC/AIM
ExitPolicy accept *:543-544   # Kerberos
ExitPolicy accept *:554       # RTSP
ExitPolicy accept *:563       # NNTP over SSL
ExitPolicy accept *:587       # SUBMISSION (authenticated clients [MUA's like Thunderbird] send mail over STARTTLS SMTP here)
ExitPolicy accept *:636       # LDAP over SSL
ExitPolicy accept *:706       # SILC
ExitPolicy accept *:749       # kerberos
ExitPolicy accept *:873       # rsync
ExitPolicy accept *:902-904   # VMware
ExitPolicy accept *:981       # Remote HTTPS management for firewall
ExitPolicy accept *:989-995   # FTP over SSL, Netnews Administration System, telnets, IMAP over SSL, ircs, POP3 over SSL
ExitPolicy accept *:1194      # OpenVPN
ExitPolicy accept *:1220      # QT Server Admin
ExitPolicy accept *:1293      # PKT-KRB-IPSec
ExitPolicy accept *:1500      # VLSI License Manager
ExitPolicy accept *:1533      # Sametime
ExitPolicy accept *:1677      # GroupWise
ExitPolicy accept *:1723      # PPTP
ExitPolicy accept *:1755      # RTSP
ExitPolicy accept *:1863      # MSNP
ExitPolicy accept *:2082      # Infowave Mobility Server
ExitPolicy accept *:2083      # Secure Radius Service (radsec)
ExitPolicy accept *:2086-2087 # GNUnet, ELI
ExitPolicy accept *:2095-2096 # NBX
ExitPolicy accept *:2102-2104 # Zephyr
ExitPolicy accept *:3128      # SQUID
ExitPolicy accept *:3389      # MS WBT
ExitPolicy accept *:3690      # SVN
ExitPolicy accept *:4321      # RWHOIS
ExitPolicy accept *:4643      # Virtuozzo
ExitPolicy accept *:5050      # MMCC
ExitPolicy accept *:5190      # ICQ
ExitPolicy accept *:5222-5223 # XMPP, XMPP over SSL
ExitPolicy accept *:5228      # Android Market
ExitPolicy accept *:5900      # VNC
ExitPolicy accept *:6660-6669 # IRC
ExitPolicy accept *:6679      # IRC SSL
ExitPolicy accept *:6697      # IRC SSL
ExitPolicy accept *:8000      # iRDMI
ExitPolicy accept *:8008      # HTTP alternate
ExitPolicy accept *:8074      # Gadu-Gadu
ExitPolicy accept *:8080      # HTTP Proxies
ExitPolicy accept *:8082      # HTTPS Electrum Bitcoin port
ExitPolicy accept *:8087-8088 # Simplify Media SPP Protocol, Radan HTTP
ExitPolicy accept *:8332-8333 # Bitcoin
ExitPolicy accept *:8443      # PCsync HTTPS
ExitPolicy accept *:8888      # HTTP Proxies, NewsEDGE
ExitPolicy accept *:9418      # git
ExitPolicy accept *:9999      # distinct
ExitPolicy accept *:10000     # Network Data Management Protocol
ExitPolicy accept *:11371     # OpenPGP hkp (http keyserver protocol)
ExitPolicy accept *:19294     # Google Voice TCP
ExitPolicy accept *:19638     # Ensim control panel
ExitPolicy accept *:50002     # Electrum Bitcoin SSL
ExitPolicy accept *:64738     # Mumble
ExitPolicy reject *:*

Make sure to expose port 9001
-p 9001:9001

or if using docker-compose

yaml
ports:
  - "9001:9001"

Liming the used bandwith

To have control over the bandwith and cpu load you can limit the used bandwith. Add this lines to your config:

BandwidthRate 10 Mbits
BandwidthBurst 12 Mbits
MaxAdvertisedBandwidth 9 Mbits

MaxAdvertisedBandwidth needs to be lower than BandwidthRate. It also indirectly limits the cpu load. By adjusting it you can fine tune the load of your server. You can find out more about these parameters (and every other config parameter) here.

Seeing the results

When running in relay or exit mode your tor service should be picked up by the network after a couple of hours. You can then search for your node on tormetrics (if it's not running as a bridge). The first days your Tor node will slowly increase traffic. The process how new relays are treated by the Tor network is described in this blog post.

Credits

Thanks to Jessie Frazelle for his tutorial about Tor and Docker.

License

MIT

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 tor-alpine 镜像标签

docker pull docker.xuanyuan.run/chris579/tor-alpine:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull chris579/tor-alpine:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
chris579/tor-alpine
教程轩辕镜像功能与使用教程
定价查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 tor-alpine 镜像推荐

alpine/git logo

alpine/git

Alpine 工具与轻量镜像
这是一个运行于Alpine Linux系统中的简易Git容器,Alpine Linux以其极致精简的特性为基础,使得该容器在保持Git核心功能的同时,具备轻量高效的运行表现,尤其适用于各类小型Linux发行版环境,能够满足资源受限场景下的版本控制需求,为嵌入式系统、边缘设备或轻量级开发环境提供便捷的Git服务支持。
252 次收藏1亿+ 次下载
23 天前更新
alpine/k8s logo

alpine/k8s

Alpine 工具与轻量镜像
用于EKS的Kubernetes工具箱,包含kubectl、helm、iam-authenticator、eksctl等工具,支持EKS环境下的Kubernetes集群管理与操作。
65 次收藏5000万+ 次下载
1 个月前更新
alpine logo

library/alpine

Docker 官方镜像
这是一款基于轻量级Alpine Linux构建的最小化Docker镜像,它不仅包含完整的软件包索引以确保用户能便捷获取所需依赖,而且体积仅为5MB,能极大节省存储空间与网络传输资源,非常适合对资源占用有严格要求的容器化应用场景,为快速部署和高效运行提供了轻量可靠的基础环境。
1.2万 次收藏10亿+ 次下载
2 个月前更新
alpine/curl logo

alpine/curl

Alpine 工具与轻量镜像
基于Alpine Linux的轻量级Docker镜像,集成了curl命令行工具,专为网络数据传输设计。支持HTTP、HTTPS、FTP等多种协议,可用于API测试、文件下载、服务监控等场景。得益于Alpine的精简特性,镜像体积小巧,启动快速,非常适合在容器化环境中执行临时网络请求或自动化任务,是开发调试、CI/CD流程及微服务健康检查的理想工具。
12 次收藏5000万+ 次下载
25 天前更新
alpine/socat logo

alpine/socat

Alpine 工具与轻量镜像
基于Alpine的轻量级容器,用于运行socat网络工具,实现端口转发、数据流转发等网络通信功能。
116 次收藏5000万+ 次下载
25 天前更新

查看更多 tor-alpine 相关镜像