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

GET /docker/api/v2/compute_resources/:compute_resource_id/containers
List all containers on a compute resource

Parámetros

Nombre del parámetro Descripción
compute_resource_id
opcional

Validations:

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

search
opcional

filtrar resultados

Validations:

  • Must be String

order
opcional

organizar resultados

Validations:

  • Must be String

page
opcional

paginar resultados

Validations:

  • Must be String

per_page
opcional

número de entradas por solicitud

Validations:

  • Must be String


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

GET /docker/api/v2/compute_resources/:compute_resource_id/containers/:id
Show container on a compute resource

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • 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
opcional

Validations:

  • 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
Create container on a compute resource

Parámetros

Nombre del parámetro Descripción
container
requerido

Validations:

  • Must be a Hash

container[name]
opcional , nil permitido

Validations:

  • Must be String

container[location_ids]
opcional , nil permitido

REMPLAZAR ubicaciones con ID dadas

Validations:

  • Must be an array of any type

container[organization_ids]
opcional , nil permitido

REMPLAZAR organizaciones con ID dadas.

Validations:

  • Must be an array of any type

container[compute_resource_id]
requerido

Validations:

  • 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]
opcional , nil permitido

Registry this container will have to use to get the image

Validations:

  • 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]
requerido

Name of the repository to use to create the container. e.g. centos

Validations:

  • Must be String

container[tag]
requerido

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

Validations:

  • Must be String

container[tty]
opcional , nil permitido

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[entrypoint]
opcional , nil permitido

Validations:

  • Must be String

container[command]
requerido

Validations:

  • Must be String

container[memory]
opcional , nil permitido

Validations:

  • Must be String

container[cpu_shares]
opcional , nil permitido

Validations:

  • Must be a number.

container[cpu_set]
opcional , nil permitido

Validations:

  • Must be String

container[environment_variables]
opcional , nil permitido

Validations:

  • Must be Hash

container[attach_stdout]
opcional , nil permitido

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[attach_stdin]
opcional , nil permitido

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[attach_stderr]
opcional , nil permitido

Validations:

  • Must be 'true' or 'false' or '1' or '0'

container[capsule_id]
opcional , nil permitido

The capsule this container will have to use to get the image. Relevant for images retrieved from katello registry.

Validations:

  • 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
Delete container on a compute resource

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • 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
opcional

Validations:

  • 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
Show logs from a container on a compute resource

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • 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
opcional

Validations:

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

stdout
opcional

Validations:

  • Must be 'true' or 'false' or '1' or '0'

stderr
opcional

Validations:

  • Must be 'true' or 'false' or '1' or '0'

tail
opcional

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

Validations:

  • 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
Run power operation on a container on a compute resource

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • 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
opcional

Validations:

  • 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
requerido

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

Validations:

  • Must be String