GET /docker/api/v2/containers
Показать все контейнеры

GET /docker/api/v2/compute_resources/:compute_resource_id/containers
Список всех контейнеров вычислительного ресурса

Params

Param Name Description
compute_resource_id
Optional

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
search
Optional

отфильтровать результаты


Value: Must be String
order
Optional

отсортировать результаты


Value: Must be String
page
Optional

разместить результат на нескольких страницах


Value: Must be String
per_page
Optional

количество записей на запрос


Value: Must be String

GET /docker/api/v2/containers/:id
Показать контейнер

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Показать контейнер на вычислительном ресурсе

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
compute_resource_id
Optional

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

POST /docker/api/v2/containers
Создать контейнер

POST /docker/api/v2/compute_resources/:compute_resource_id/containers
Создать контейнер на вычислительном ресурсе

Params

Param Name Description
container
Required

Value: Must be a Hash
container[name]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
container[compute_resource_id]
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
container[registry_id]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Registry this container will have to

use to get the image

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
container[repository_name]
Required

Name of the repository to use

to create the container. e.g: centos

Value: Must be String
container[tag]
Required

Tag to use to create the container. e.g: latest


Value: Must be String
container[tty]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
container[entrypoint]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
container[command]
Required

Value: Must be String
container[memory]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
container[cpu_shares]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be a number.
container[cpu_set]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
container[environment_variables]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be Hash
container[attach_stdout]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
container[attach_stdin]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
container[attach_stderr]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
container[capsule_id]
Optional , <span class="translation_missing" title="translation missing: ru.apipie.nil_allowed">Nil Allowed</span>

The capsule this container will have to use

to get the image. Relevant for images
retrieved from katello registry.

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

DELETE /docker/api/v2/containers/:id
Удалить контейнер

DELETE /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Удалить контейнер с вычислительного ресурса

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
compute_resource_id
Optional

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

GET /docker/api/v2/containers/:id/logs
Показать журналы контейнера

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id/logs
Показать журналы из контейнера вычислительного ресурса

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
compute_resource_id
Optional

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
stdout
Optional

Value: Must be 'true' or 'false'
stderr
Optional

Value: Must be 'true' or 'false'
tail
Optional

Число строк в буфере прокрутки (по умолчанию 100)


Value: Must be Fixnum

PUT /docker/api/v2/containers/:id/power
Выполнить операцию управления питанием для контейнера

PUT /docker/api/v2/compute_resources/:compute_resource_id/containers/:id/power
Выполнить операцию управления питанием для контейнера в вычислительном ресурсе

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
compute_resource_id
Optional

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
power_action
Required

операция управления питанием: (start), (stop), (status)


Value: Must be String