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: ko.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: ko.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: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be ‘true’ or ‘false’

container[entrypoint]
Optional , <span class="translation_missing" title="translation missing: ko.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: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be String

container[cpu_shares]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be a number.

container[cpu_set]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be String

container[environment_variables]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be Hash

container[attach_stdout]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be ‘true’ or ‘false’

container[attach_stdin]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be ‘true’ or ‘false’

container[attach_stderr]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Value:

Must be ‘true’ or ‘false’

container[capsule_id]
Optional , <span class="translation_missing" title="translation missing: ko.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