首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >启动coreos上的calicoctl容器

启动coreos上的calicoctl容器
EN

Stack Overflow用户
提问于 2016-10-05 04:44:03
回答 1查看 286关注 0票数 2

我有CoreOS测试版(1153.4.0)

我正在尝试运行calicoctl来检查我的calico网络是否配置正确。因此,我尝试使用命令rkt run quay.io/calico/ctl运行calicoctl rkt容器,并得到输出

代码语言:javascript
复制
image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.13.0
image: using image from local store for image name quay.io/calico/ctl
networking: loading networks from /etc/rkt/net.d
networking: loading network default with type ptp
[ 2147.433992] ctl[5]: Override the host:port of the ETCD server by setting the environment variable:
[ 2147.434626] ctl[5]: ETCD_ENDPOINTS [example: http://1.2.3.4:2379,http://1.2.3.5:2379]
[ 2147.435096] ctl[5]: or, if ETCD_ENDPOINTS is left unset:
[ 2147.435565] ctl[5]: ETCD_AUTHORITY [default: 127.0.0.1:2379]
[ 2147.436026] ctl[5]: Usage: calicoctl <command> [<args>...]
[ 2147.436502] ctl[5]:     status            Print current status information
[ 2147.436946] ctl[5]:     node              Configure the main calico/node container and establish Calico networking
[ 2147.437402] ctl[5]:     container         Configure containers and their addresses
[ 2147.437857] ctl[5]:     profile           Configure endpoint profiles
[ 2147.438316] ctl[5]:     endpoint          Configure the endpoints assigned to existing containers
[ 2147.438817] ctl[5]:     pool              Configure ip-pools
[ 2147.439269] ctl[5]:     bgp               Configure global bgp
[ 2147.439738] ctl[5]:     ipam              Configure IP address management
[ 2147.440194] ctl[5]:     checksystem       Check for incompatibilities on the host system
[ 2147.440698] ctl[5]:     diags             Save diagnostic information
[ 2147.441158] ctl[5]:     version           Display the version of calicoctl
[ 2147.441636] ctl[5]:     config            Configure low-level component configuration
[ 2147.442119] ctl[5]: See 'calicoctl <command> --help' to read about a specific subcommand.

尝试使用rkt run quay.io/calico/ctl --exec calicoctl从命令行执行calico将返回stage1: failed to configure systemd: unable to find "calicoctl" in "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

尝试执行/bin/sh以查看那里发生了什么,我得到了输出

代码语言:javascript
复制
image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.13.0
image: using image from local store for image name quay.io/calico/ctl
networking: loading networks from /etc/rkt/net.d
networking: loading network default with type ptp

然后它就退出了。

有什么想法吗?

更新

使用最新版本的calico-ctl时,我收到不同的错误消息:

代码语言:javascript
复制
# rkt run quay.io/calico/ctl --exec /calicoctl -- status
image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.14.0
image: using image from local store for image name quay.io/calico/ctl
networking: loading networks from /etc/rkt/net.d
networking: loading network default with type ptp
[156164.470502] ctl[5]: Docker is not running
EN

回答 1

Stack Overflow用户

发布于 2016-10-05 05:09:59

Calicoctl存储在文件系统根/

rkt run语法并不理想,但下面介绍如何使用其他参数运行它

sudo rkt run quay.io/calico/ctl --exec /calicoctl -- version image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.12.0 image: using image from local store for image name quay.io/calico/ctl networking: loading networks from /etc/rkt/net.d networking: loading network default with type ptp [360361.039942] ctl[5]: 0.22.0-dev

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39861422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档