запуск контейнера calicoctl на coreos

У меня бета-версия CoreOS (1153.4.0)

Я пытаюсь запустить calicoctl, чтобы проверить, правильно ли настроена моя сеть calico. поэтому я пытаюсь запустить контейнер calicoctl rkt с помощью команды rkt run quay.io/calico/ctl и получаю вывод

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.

попытка выполнить calico из командной строки с помощью rkt run quay.io/calico/ctl --exec calicoctl возвращает stage1: failed to configure systemd: unable to find "calicoctl" in "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

пытаясь выполнить /bin/sh, чтобы увидеть, что там происходит, я получаю вывод

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 я получаю другое сообщение об ошибке:

# 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

person ufk    schedule 04.10.2016    source источник
comment
Вам нужно --interactive, когда вы --exec /bin/sh   -  person tomdee    schedule 05.10.2016


Ответы (1)


Calicoctl хранится в корне файловой системы /

Синтаксис запуска rkt не идеален, но вот как его можно запустить с дополнительными аргументами.

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

person tomdee    schedule 04.10.2016
comment
Здравствуй. Спасибо за ваш ответ. работающая версия с этим методом возвращает правильную версию, но при попытке запустить команду состояния я получаю ctl [5]: Docker не запущен. Любые идеи? - person ufk; 05.10.2016