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

kellman/cpdeploy

kellman

CPdeploy - CloudSec Policy Deployment (gw in the sky project)

3 次收藏下载次数: 0状态:社区镜像维护者:kellman仓库类型:镜像最近更新:9 年前
让 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,不浪费每一次拉取。
点击查看

v4.6 - 7/21/16 7:31PM EST - See repo at https://github.com/kellmant/cpdeploy.git for the gory details. Added program 'shellcontrol' run it before you start any launches and the controller will have shell access to the instances. Other scripts now apply, take a look around.

v4.5 - 7/21/16 7:48AM EST - COMMITED TO GIT - If you care about the state of this very simple controller, please fork or review at: https://github.com/kellmant/cpdeploy.git Details can be found there, including original docker file.

v4.4 - 7/18/16 10:35PM EST - CRITICAL UPDATE!! Please update your container, the previous release was broken in many horrible ways.

v4.0 5/29/16 7:21PM EST - NEW RELEASE -

Now CPdeploy works through an interactive shell console. Read [***] for details and walk through.

(command line still available, use 'showme' or 'helpme' in the console for more details on commands available.)

--------------old release information------------------------------------ v3.4 05/12/16 5:18PM EST

So you found the cpdeploy container? Must mean you really like gateways in the cloud.

We should talk.

Here is the quick run down, please experiment for best results. Not meant for production,although I see no reason it wouldn't work with some extra focus, but at that point, there are already many other tools that do it better. But they are big. And complex. Just like a cloud project.

I know it doesn't look like it now, especially if you are new to linux, but once we walk through this setup, its simple commands to get what we want. I say again, not built to support a production cloud deployment, this is for testing production deployments in pieces. That's what this does, stitch together a secure VPC you can easily replicate or rebuild with a couple of commands.

Change a variable, run a command. This is what this does and lets not forget it's a container, which means you can save your own version locally with your configuration. If you know docker, you can save many version in different images. But this isn't about docker, this is about building gateways in the sky. Let's get to the operation of cpdeploy.

First off, make sure you run 'aws configure' to authorize your account. If you don't have a key and secret key, visit the Identity and Access Management (IAM) page in the aws web console and generate yourself some. Ensure you create a role with the appropriate permissions to manage EC2 instances (administrator role for example).

The root directory for all the action is /cpdeploy, and you can get there with 'cpdeploy'. In this folder is a file we need to edit first, VAR. You can edit directly or type 'cpconfig' to launch directly into editing the file. (viconfig gives you the variable file in vi, my personal favourite, but for some reason others prefer nano, which will be the default with cpconfig. The VAR file holds all the details for where and what gets launched in our shiny new virtual private cloud (VPC). You have to edit this file, but not the whole thing, most of the work is done for you. The file is commented, so it should make sense. . . right? Customize VAR to your environment.

Once you are done customizing your VAR, you should be ready to propagate the VPC, routing, subnets, and interfaces. It's allot of clicking in the web, start small, add incrementally is the concept we are going for here.

mg stands for Management, and to get to the management directory, run: mg That is it. You're in the management directory. Now the bad news. *Due to the current R80 being a private ami, this container assumes you have access to the private ami, or already have a management station to support your cloud gateways.* The container will be updated when the image goes public.

You can always type ll or ls to see the commands available to you in each directory. If you run something without parameters it should tell you how it works and what its looking for. You won't break anything so get in there.

Now for the real stuff, launching gateways in the sky. 'gw' takes you to the gateway scripts, but it is important you prepare the VPC BEFORE YOU LAUNCH ANY GATEWAYS!. 'prep-vpc' is the script available in the 'gw' directory and is looking for you to specify a vpc identifier in the form of a number from 0-254. This is also used to create the subnets in a template fashion. You also need to specify the region with a simple east or west designation. Basically do you want your vpc on the east coast or the west coast? Run 'prep-vpc 1 east' to prepare a simple secured VPC enviroment for EC2 instances. After the prep-vpc finishes, run 'launchgw 1' for you to add the security gateway to the VPC as the default path for the internal subnet. Don't worry about the details, it also builds it's own policy, so you don't have to run any other commands. You can use the aws web interface to monitor progress, but thats a little like watching paint dry.

That's it. The screen will spill back a bunch of info, Don't worry about it. Go get a coffee, relax. That gateway is setting itself up for you. You can take note of any IP or hostname information that goes by, if it helps you feel busy, The script already parsed out the stuff we care about. Just give it the time it needs to provision, initialize, first time config, and reboot. On the lower end instances, that's about 11 minutes, but just to be on the safe side, give it 15 if you are using a larger instance size. And I use the term safe without any fears. You initialize too quick? Maybe? Who cares, 'killgw 1' and start again, only no need to prep-vpc 1, since it stays there like a shell. There is no cost to keep a vpc configured. You will have to go to the web gui if you want to delete the VPC (it's easier, you can just delete the vpc in one shot) or leave them laying around, you can attach and detach gateways to the VPC by number.

so to recap, run the following command in one line and this will create the vpc and initialize the gateway all at once. prep-net 22 west ; launchgw 22

This would give me gw-22 ready in VPC-22 using network 10.0.22.0/24 . . or something like that. Script takes care of it.

. . .

so it's 15 minutes later and you are dying to play with your new gateway in the cloud. Next step follows a pattern, in the same dir as before (type gw to go back) and execute the command 'Connect 22' If you have your R80 console open, you will see your gateway appear, complete with rules and nat appropriate for the cloud. It will also reference an app server, but we will get to that. Please wait for the policy installs (there will be two) to complete, you can keep yourself busy looking at logs if you want,

Your example VPC is live. Repeat as necessary, for example: gw ; prep-vpc 10 east ; launchgw 10 ; gw ; prep-vpc 20 west ; launchgw 20 ; will prepare two separate geo redundant secured data centres in the cloud. Don't get too excited, they are not active yet.

It is important to keep in mind that the VPC we create will stay, and you will eventually run out of VPCs (5 per region) and get errors. Don't panic. Anything out of order? Something not working? Remember you have the nuke it from above option. It's only software. gw ; killgw 10 ; killgw 20 and if you want to bring them back to life again? run: gw ; launch 10 ; launch 20 anytime. . . well almost anytime, if you kill previous instances, give them about 2 minutes to die before your relaunch.

But before you go killing anything, let's actually bring the gateway into production state and we do that by attaching it to the management station and setting policy. For the complete process to create a VPC and bring a security gateway into a ready state, run the following:

gw prep-vpc <0-254> launchgw <0-254>

  • ~15 minutes for init -

gw Connect <0-254>

Check your logs on the management station, you have a gateway in the cloud.

But it's not that exciting is it? You know why? Nothing to protect, What's the point?

type the following:

app; launchapp <0-254>

In about 10 minutes, a webserver will be accessible through the firewall public IP from AWS. you can http://<ip of the fw, arent you glad you wrote it down?> or, if you are using hosted dns, you are just connecting to a name. You can find the IP and name of your gateway in the ec2 console of the amazon web interface, or get the details by typing 'status' in the cpdeploy shell.

And so the journey begins, be patient, its a long trip and there are other goodies buried in these scripts if you are inclined to look. I will be updating based on my own usage, and hope to create a series of templates in the form of VAR files and saved containers. Feedback is welcome, suggestions for scripting also welcome, but I may ask you how to do it, so be prepared to help :) On that note, I'm no programmer, just a lazy security admin who automates repetitive or painful tasks.

@kellman

镜像拉取方式

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

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

docker pull docker.xuanyuan.run/kellman/cpdeploy:<标签>

使用方法:

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

DockerHub 原生拉取命令

docker pull kellman/cpdeploy:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

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

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题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访问体验非常流畅,大镜像也能快速完成下载。"

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

更多 cpdeploy 镜像推荐

kellman/apigw logo

kellman/apigw

kellman
暂无描述
742 次下载
7 年前更新
kellman/slapi logo

kellman/slapi

kellman
暂无描述
646 次下载
7 年前更新
kellman/dyndns logo

kellman/dyndns

kellman
DNS updater for route53
594 次下载
7 年前更新

查看更多 cpdeploy 相关镜像