百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

container-agent

> 编程语言
开源

基于声明性清单的容器运行简单代理。

199 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于声明性清单的容器运行简单代理。

This project is no longer actively developed or maintained.

This code is deprecated in favor of Kubernetes and Kubelet.

container-agent

container-agent is a small python agent designed to manage a group of Docker containers according to a YAML manifest.

Usage

Locally

virtualenv env
env/bin/pip install git+http://github.com/GoogleCloudPlatform/container-agent.git
env/bin/container-agent 

Google Cloud Platform

Container-optimized images including container-agent are available for Google Compute Engine.

You can list available versions using:

gcloud compute images list --project google-containers

You can launch a new instance running container-agent. It will try to read the manifest from google-container-manifest metadata on startup:

bash
gcloud compute instances create my-container-vm \
    --image projects/google-containers/global/images/container-vm-v20140522 \
    --metadata-from-file google-container-manifest=/path/to/containers.yaml \
    --zone us-central1-a \
    --machine-type f1-micro

Read more about Containers on the Google Cloud Platform

Container Group

The agent setup the container group defined by the manifest to share:

  • Network Namespaces
  • Volumes

This creates a runtime environment where:

  • Containers can connect to a service running in other containers of the same group using localhost and a fixed port.
  • Containers of the same group can't run services on the same ports.
  • Containers of the same group can mount shared volumes defined in the manifest.

Manifest

A simple netcat server.

version: v1beta1
containers:
  - name: simple-echo
    image: busybox
    command: ['nc', '-p', '8080', '-l', '-l', '-e', 'echo', 'hello world!']
    ports:
      - name: nc-echo
        hostPort: 8080
        containerPort: 8080

Read the Manifest format specification, and browse examples

Community

  • Give early feedback and talk with the community (including the developer team) on the mailing-list
  • Ask development and best practices questions on Stack Overflow
  • Chat with the community on IRC
  • Submit Issues & Feature requests to the GitHub issue tracker
  • Fork the repository and start contributing

License

Apache License, Version 2.0

Issues· 4 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言