GET /docker/api/v2/containers
Listar todos los contenedores

GET /docker/api/v2/compute_resources/:compute_resource_id/containers
Listar todas los contenedores en un recurso de cómputo

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

filtrar resultados


Value: Must be String
order
Optional

ordenar resultados


Value: Must be String
page
Optional

paginar resultados


Value: Must be String
per_page
Optional

número de entradas por petición


Value: Must be String

GET /docker/api/v2/containers/:id
Mostrar un contenedor

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Mostrar un contenedor en un recurso de cómputo

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
Crear un contenedor

POST /docker/api/v2/compute_resources/:compute_resource_id/containers
Crear un contenedor en un recurso de cómputo

Params

Param Name Description
container
Required

Value: Must be a Hash
container[name]
Optional , <span class="translation_missing" title="translation missing: es.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: es.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: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be 'true' or 'false'
container[entrypoint]
Optional , <span class="translation_missing" title="translation missing: es.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: es.apipie.nil_allowed">Nil Allowed</span>

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

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

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

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

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

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

Value: Must be 'true' or 'false'
container[capsule_id]
Optional , <span class="translation_missing" title="translation missing: es.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
Borrar un contenedor

DELETE /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Borrar un contenedor en un recurso de cómputo

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
Mostrar registros de contenedor

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id/logs
Mostrar registros de un contenedor en un recurso de cómputo

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

Cantidad de líneas hasta el final. Predeterminada: 100


Value: Must be Fixnum

PUT /docker/api/v2/containers/:id/power
Ejecutar operacion de encendido en un contenedor

PUT /docker/api/v2/compute_resources/:compute_resource_id/containers/:id/power
Ejecutar la operación de encendido en un contenedor en un recurso de cómputo

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

acción de encendido, las acciones válidas incluyen (start), (stop), (status)


Value: Must be String