{"id":29616684,"url":"https://github.com/jimyag/containers","last_synced_at":"2025-07-21T01:02:06.718Z","repository":{"id":250570623,"uuid":"830284492","full_name":"jimyag/containers","owner":"jimyag","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-05T16:33:42.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T17:30:08.876Z","etag":null,"topics":["containers","images","novnc","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimyag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-18T01:32:27.000Z","updated_at":"2025-06-05T16:30:02.000Z","dependencies_parsed_at":"2025-05-11T04:34:04.189Z","dependency_job_id":null,"html_url":"https://github.com/jimyag/containers","commit_stats":null,"previous_names":["jimyag/containers"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jimyag/containers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimyag%2Fcontainers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimyag%2Fcontainers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimyag%2Fcontainers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimyag%2Fcontainers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimyag","download_url":"https://codeload.github.com/jimyag/containers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimyag%2Fcontainers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266222295,"owners_count":23894992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","images","novnc","ubuntu"],"created_at":"2025-07-21T01:02:06.047Z","updated_at":"2025-07-21T01:02:06.711Z","avatar_url":"https://github.com/jimyag.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Containers\n\n这个仓库包含了各种 Docker 容器的配置和使用说明。\n\n## 目录\n\n- [Containers](#containers)\n  - [目录](#目录)\n  - [noVNC](#novnc)\n    - [使用方法](#使用方法)\n    - [参数说明](#参数说明)\n  - [OpenConnect-socks5](#openconnect-socks5)\n    - [前置条件](#前置条件)\n    - [使用方法](#使用方法-1)\n    - [配置说明](#配置说明)\n    - [注意事项](#注意事项)\n\n## noVNC\n\nnoVNC 是一个基于 HTML5 的 VNC 客户端，可以通过浏览器访问 VNC 服务器。\n\n### 使用方法\n\n运行容器：\n\n```bash\ndocker run --rm --name novnc \\\n    -p 6080:6080 \\\n    -e VNC_SERVER=192.168.2.100:5900 \\\n    ghcr.io/jimyag/novnc:latest\n```\n\n在浏览器中访问：\n\n- 打开 `http://localhost:6080`\n\n### 参数说明\n\n- `-p 6080:6080`: 映射容器的 6080 端口到主机的 6080 端口\n- `-e VNC_SERVER`: 设置 VNC 服务器地址和端口\n\n## OpenConnect-socks5\n\n这是一个基于 OpenConnect VPN 的 socks5 代理服务。它通过 OpenConnect 连接到 VPN 服务器，并将连接转换为 socks5 代理服务，方便其他应用程序使用。\n\n### 前置条件\n\n创建 `.env` 文件并配置以下环境变量：\n\n```bash\nLDAP_USER=admin\nLDAP_PASSWD=123456\nVPN_SERVER=test.abc.com\nGOST_PORT=53200\n```\n\n### 使用方法\n\n使用 Docker Compose 启动服务：\n\n```bash\ndocker compose up -d\n```\n\n配置应用程序使用 socks5 代理：\n\n- 代理地址：`127.0.0.1:53200`\n- 代理类型：socks5\n\n### 配置说明\n\n- `cap_add`: 添加必要的容器权限\n  - `NET_ADMIN`: 网络管理权限\n  - `MKNOD`: 创建设备节点权限\n- `devices`: 挂载 TUN 设备\n- `ports`: 映射 socks5 代理端口\n- `healthcheck`: 容器健康检查配置\n\n### 注意事项\n\n- 确保主机系统支持 TUN 设备\n- 需要正确配置 VPN 服务器地址和认证信息\n- 建议在生产环境中使用更安全的密码\n- socks5 代理服务默认监听在 53200 端口\n\n```bash\ndocker compose up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimyag%2Fcontainers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimyag%2Fcontainers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimyag%2Fcontainers/lists"}