[{"data":1,"prerenderedAt":334},["ShallowReactive",2],{"docs:/docs/remote/docker":3},{"id":4,"title":5,"body":6,"description":326,"extension":327,"meta":328,"navigation":329,"path":330,"seo":331,"stem":332,"__hash__":333},"docs/docs/remote/docker.md","Docker 部署",{"type":7,"value":8,"toc":322},"minimark",[9,13,44,48,119,191,248,264,290,293,318],[10,11,5],"h1",{"id":12},"docker-部署",[14,15,18],"callout",{"title":16,"type":17},"镜像正在上架中","note",[19,20,21,25,26,35,36,39,40,43],"p",{},[22,23,24],"code",{},"xnkyn/p2pee-remote"," 随内测节奏发布，",[27,28,29,30],"strong",{},"暂时拉不到就先回到 ",[31,32,34],"a",{"href":33},"/docs/remote/cli","CLI 单文件"," —— 能力与参数完全一致，容器只是换了个部署方式。本页写的就是上线后的口径（",[22,37,38],{},"KEY"," + ",[22,41,42],{},"CONNECT","、host 网络）。",[45,46,47],"h2",{"id":47},"镜像信息",[49,50,51,64],"table",{},[52,53,54],"thead",{},[55,56,57,61],"tr",{},[58,59,60],"th",{},"项目",[58,62,63],{},"内容",[65,66,67,80,100,108],"tbody",{},[55,68,69,73],{},[70,71,72],"td",{},"Docker Hub",[70,74,75],{},[31,76,77],{"href":77,"rel":78},"https://hub.docker.com/r/xnkyn/p2pee-remote",[79],"nofollow",[55,81,82,85],{},[70,83,84],{},"镜像与 tag",[70,86,87,90,91],{},[22,88,89],{},"xnkyn/p2pee-remote:1.0.0","，",[27,92,93,94,99],{},"版本号以 ",[31,95,98],{"href":96,"rel":97},"https://hub.docker.com/r/xnkyn/p2pee-remote/tags",[79],"镜像列表"," 最新为准",[55,101,102,105],{},[70,103,104],{},"架构",[70,106,107],{},"amd64（arm64 随后续版本提供）",[55,109,110,113],{},[70,111,112],{},"更新记录",[70,114,115],{},[31,116,118],{"href":117},"/docs/update-log/remote","远程桌面更新日志",[120,121,126],"pre",{"className":122,"code":123,"language":124,"meta":125,"style":125},"language-sh shiki shiki-themes github-dark","# 必须用 host 网络：网关要能 TCP 连到内网目标机的 3389 / 5900\ndocker run -d --name=p2pee-remote --network=host --restart=always \\\n  -e KEY='\u003C你的Key>' \\\n  -e CONNECT='办公室机=rdp:192.168.10.7?user=ops' \\\n  xnkyn/p2pee-remote:1.0.0\n","sh","",[22,127,128,137,164,175,185],{"__ignoreMap":125},[129,130,133],"span",{"class":131,"line":132},"line",1,[129,134,136],{"class":135},"sAwPA","# 必须用 host 网络：网关要能 TCP 连到内网目标机的 3389 / 5900\n",[129,138,140,144,148,152,155,158,161],{"class":131,"line":139},2,[129,141,143],{"class":142},"svObZ","docker",[129,145,147],{"class":146},"sU2Wk"," run",[129,149,151],{"class":150},"sDLfK"," -d",[129,153,154],{"class":150}," --name=p2pee-remote",[129,156,157],{"class":150}," --network=host",[129,159,160],{"class":150}," --restart=always",[129,162,163],{"class":150}," \\\n",[129,165,167,170,173],{"class":131,"line":166},3,[129,168,169],{"class":150},"  -e",[129,171,172],{"class":146}," KEY='\u003C你的Key>'",[129,174,163],{"class":150},[129,176,178,180,183],{"class":131,"line":177},4,[129,179,169],{"class":150},[129,181,182],{"class":146}," CONNECT='办公室机=rdp:192.168.10.7?user=ops'",[129,184,163],{"class":150},[129,186,188],{"class":131,"line":187},5,[129,189,190],{"class":146},"  xnkyn/p2pee-remote:1.0.0\n",[49,192,193,203],{},[52,194,195],{},[55,196,197,200],{},[58,198,199],{},"参数",[58,201,202],{},"说明",[65,204,205,221,235],{},[55,206,207,212],{},[70,208,209],{},[22,210,211],{},"-e KEY",[70,213,214,215,220],{},"账户 Key，在 ",[31,216,219],{"href":217,"rel":218},"https://p2pee.cn/dashboard",[79],"Web 控制台"," 获取",[55,222,223,228],{},[70,224,225],{},[22,226,227],{},"-e CONNECT",[70,229,230,231,234],{},"目标机器，多台用逗号分隔，写法与 ",[22,232,233],{},"-connect"," 完全一致",[55,236,237,242],{},[70,238,239],{},[22,240,241],{},"--network=host",[70,243,244,247],{},[27,245,246],{},"必需","：桥接网络里的容器连不到宿主机所在内网的那台机器",[19,249,250,251,254,255,258,259,263],{},"启动后用 ",[22,252,253],{},"docker logs -f p2pee-remote"," 查看横幅里的",[27,256,257],{},"公网访问页","地址，也可以在控制台复制，见 ",[31,260,262],{"href":261},"/docs/remote/console","控制台查看与管理","。",[14,265,268],{"title":266,"type":267},"容器里跑要留意两件事","warning",[19,269,270,271,274,275,278,279,282,283,285,286,263],{},"① 目标地址的准入判定只看字面量，用 host 网络时写宿主机看到的内网地址即可（",[22,272,273],{},"192.168.x","、",[22,276,277],{},"127.0.0.1","）；② ",[27,280,281],{},"RDP 口令不接受环境变量预置","，别把它塞进 ",[22,284,42],{},"，只能在页面输入 —— 原因见 ",[31,287,289],{"href":288},"/docs/remote/targets","目标串与被控机要求",[45,291,292],{"id":292},"相关",[294,295,296,303,310],"ul",{},[297,298,299,302],"li",{},[31,300,301],{"href":33},"CLI 命令行","：不装 Docker 的单文件跑法与全部参数",[297,304,305,309],{},[31,306,308],{"href":307},"/docs/remote/fnos-docker","飞牛 Docker 图形化","：不敲命令，在 fnOS 面板填表部署",[297,311,312,314,315,317],{},[31,313,289],{"href":288},"：",[22,316,42],{}," 的完整语法与被控机设置",[319,320,321],"style",{},"html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":125,"searchDepth":166,"depth":166,"links":323},[324,325],{"id":47,"depth":139,"text":47},{"id":292,"depth":139,"text":292},"p2pee-remote 远程桌面网关 Docker 部署：拉取 xnkyn/p2pee-remote 镜像，设置 KEY 与 CONNECT 环境变量，用 host 网络启动容器。","md",{},true,"/docs/remote/docker",{"title":5,"description":326},"docs/remote/docker","Cyw7Pcw4pQQhMwHhyqIBh-ctk9_ArSNqQ_UiiX0Y9L0",1792518095703]