
Tai lieu nay mo ta cach build va chay 9Router bang Docker dua tren cau hinh thuc te trong thu muc docker/.
Kiem tra:
bashdocker --version docker compose version
docker/docker-compose.ymldocker/.envdocker/.env.exampleDockerfile (multi-stage, Next standalone)20128Compose dang map volumes:
9router-data -> /app/data9router-usage -> /root/.9routerTu thu muc goc du an:
bashdocker compose -f ./docker/docker-compose.yml up -d --build --force-recreate --remove-orphans
Truy cap:
Xem log:
bashdocker compose -f ./docker/docker-compose.yml logs -f
Dung va xoa container/network (giu lai volumes):
bashdocker compose -f ./docker/docker-compose.yml down --remove-orphans
Dung va xoa ca volumes:
bashdocker compose -f ./docker/docker-compose.yml down -v --remove-orphans
Compose dang su dung env_file: .env trong thu muc docker/, vi vay hay sua file:
docker/.envToi thieu can doi trong moi truong production:
JWT_SECRETINITIAL_PASSWORDAPI_KEY_SECRETNeu app chay sau reverse proxy HTTPS, dat:
AUTH_COOKIE_SECURE=trueBuild image tai root:
bashdocker build -t nqdev/9router:latest .
Run container:
bashdocker run -d \ --name 9router \ -p 20128:20128 \ --env-file ./docker/.env \ -v 9router-data:/app/data \ -v 9router-usage:/root/.9router \ nqdev/9router:latest
Lenh quan ly nhanh:
bashdocker logs -f 9router docker restart 9router docker stop 9router docker rm 9router
bashdocker compose -f ./docker/docker-compose.yml down --remove-orphans docker compose -f ./docker/docker-compose.yml up -d --build --force-recreate --remove-orphans
Neu can reset du lieu hoan toan:
bashdocker compose -f ./docker/docker-compose.yml down -v --remove-orphans docker volume rm 9router_9router-data 9router_9router-usage 2>/dev/null || true
Luu y: ten volume thuc te co the duoc prefix theo ten project compose.
Kiem tra container:
bashdocker ps --filter name=9router
Kiem tra endpoint models:
bashcurl http://localhost:20128/v1/models
Neu dung PowerShell:
powershellInvoke-RestMethod -Uri "http://localhost:20128/v1/models" -Method Get
docker/docker-compose.yml, vi du 30128:20128.INITIAL_PASSWORD trong docker/.env.AUTH_COOKIE_SECURE=true khi truy cap qua HTTPS./app/data).powershell# Start $env:VERSION="0.3.47"; docker compose -f .\docker\docker-compose.yml up -d --build --force-recreate --remove-orphans # Logs docker compose -f .\docker\docker-compose.yml logs -f # Stop + remove container/network docker compose -f .\docker\docker-compose.yml down --remove-orphans # Stop + remove all including volumes docker compose -f .\docker\docker-compose.yml down -v --remove-orphans
powershell# Build 1 service cụ thể docker-compose -f docker/docker-compose.yml build <service_name> # Build không cache $env:VERSION="0.3.47"; docker compose -f .\docker\docker-compose.yml build --no-cache # Build + xem log chi tiết $env:VERSION="0.3.47"; docker compose -f .\docker\docker-compose.yml build --progress=plain # Tag image local thành latest docker tag nqdev/9router:0.3.47 nqdev/9router:latest # Push image lên Docker Hub docker push nqdev/9router:0.3.47 docker push nqdev/9router:latest
以下是 nqdev/9router 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务