To instantiate a Client
class that will allow you to communicate with aDocker daemon, simply do:
Params:
I'm trying to use a self hosted docker registry v2. I should be able to push a docker image, which does work locally on the host server (coreos) running the registry v2 container. However, on a separate machine (also coreos, same version) when I try to push to the registry, it's try to push to v1, giving this error. For more information on working with Docker in different environments, see the relevant Docker documentation: Docker for Mac, Docker for Windows. If you are working in a Mac environment, skip step 10.
- base_url (str): Refers to the protocol+hostname+port where the Docker serveris hosted.
- version (str): The version of the API the client will use. Specify
'auto'
to use the API version provided by the server. - timeout (int): The HTTP request timeout, in seconds.
- tls (bool or TLSConfig): Equivalent CLI options:
docker --tls ..
attach
The .logs()
function is a wrapper around this method, which you can useinstead if you want to fetch/stream container output without first retrievingthe entire backlog.
Params:
- container (str): The container to attach to
- stdout (bool): Get STDOUT
- stderr (bool): Get STDERR
- stream (bool): Return an iterator
- logs (bool): Get all previous output
Returns (generator or str): The logs or output for the image
build
Similar to the docker build
command. Either path
or fileobj
needs to beset. path
can be a local path (to a directory containing a Dockerfile) or aremote URL. fileobj
must be a readable file-like object to a Dockerfile.
If you have a tar file for the Docker build context (including a Dockerfile)already, pass a readable file-like object to fileobj
and also passcustom_context=True
. If the stream is compressed also, set encoding
to thecorrect value (e.g gzip
).
Params:
- path (str): Path to the directory containing the Dockerfile
- tag (str): A tag to add to the final image
- quiet (bool): Whether to return the status
- fileobj: A file object to use as the Dockerfile. (Or a file-like object)
- nocache (bool): Don't use the cache when set to
True
- rm (bool): Remove intermediate containers. The
docker build
command now defaults to--rm=true
, but we have kept the old default ofFalse
to preserve backward compatibility - stream (bool): Deprecated for API version > 1.8 (always True). Return a blocking generator you can iterate over to retrieve build output as it happens
- timeout (int): HTTP timeout
- custom_context (bool): Optional if using
fileobj
- encoding (str): The encoding for a stream. Set to
gzip
for compressing - pull (bool): Downloads any updates to the FROM image in Dockerfiles
- forcerm (bool): Always remove intermediate containers, even after unsuccessful builds
- dockerfile (str): path within the build context to the Dockerfile
- container_limits (dict): A dictionary of limits applied to each container created by the build process. Valid keys:
- memory (int): set memory limit for build
- memswap (int): Total memory (memory + swap), -1 to disable swap
- cpushares (int): CPU shares (relative weight)
- cpusetcpus (str): CPUs in which to allow execution, e.g.,
'0-3'
,'0,1'
- decode (bool): If set to
True
, the returned stream will be decoded into dicts on the fly. DefaultFalse
.
Returns (generator): A generator for the build output
Raises:TypeError if path
norfileobj
are specified
commit
Identical to the docker commit
command.
Params:
- container (str): The image hash of the container
- repository (str): The repository to push the image to
- tag (str): The tag to push
- message (str): A commit message
- author (str): The name of the author
- conf (dict): The configuration for the container. See the Docker remote api for full details.
containers
List containers. Identical to the docker ps
command.
Params:
- quiet (bool): Only display numeric Ids
- all (bool): Show all containers. Only running containers are shown by default
- trunc (bool): Truncate output
- latest (bool): Show only the latest created container, include non-runningones.
- since (str): Show only containers created since Id or Name, includenon-running ones
- before (str): Show only container created before Id or Name, includenon-running ones
- limit (int): Show
limit
last created containers, include non-running ones - size (bool): Display sizes
- filters (dict): Filters to be processed on the image list. Available filters:
exited
(int): Only containers with specified exit codestatus
(str): One ofrestarting
,running
,paused
,exited
label
(str): format either'key'
or'key=value'
Returns (dict): The system's containers
copy
Identical to the docker cp
command. Get files/folders from the container.Deprecated for API version >= 1.20 – Consider usingget_archive
instead.
Params:
- container (str): The container to copy from
- resource (str): The path within the container
Returns (str): The contents of the file as a string
create_container
Creates a container that can then be .start()
ed. Parameters are similar tothose for the docker run
command except it doesn't support the attachoptions (-a
).
See Port bindings and Using volumes for moreinformation on how to create port bindings and volume mappings.
The mem_limit
variable accepts float values (which represent the memory limitof the created container in bytes) or a string with a units identification char('100000b', '1000k', '128m', '1g'). If a string is specified without a unitscharacter, bytes are assumed as an intended unit.
volumes_from
and dns
arguments raise TypeError exception ifthey are used against v1.10 and above of the Docker remote API. Thosearguments should be passed as part of the host_config
dictionary.
Params:
- image (str): The image to run
- command (str or list): The command to be run in the container
- hostname (str): Optional hostname for the container
- user (str or int): Username or UID
- detach (bool): Detached mode: run container in the background and print newcontainer Id
- stdin_open (bool): Keep STDIN open even if not attached
- tty (bool): Allocate a pseudo-TTY
- mem_limit (float or str): Memory limit (format: [number][optional unit],where unit = b, k, m, or g)
- ports (list of ints): A list of port numbers
- environment (dict or list): A dictionary or a list of strings in thefollowing format
['PASSWORD=xxx']
or{'PASSWORD': 'xxx'}
. - dns (list): DNS name servers
- volumes (str or list):
- volumes_from (str or list): List of container names or Ids to get volumesfrom. Optionally a single string joining container id's with commas
- network_disabled (bool): Disable networking
- name (str): A name for the container
- entrypoint (str or list): An entrypoint
- cpu_shares (int): CPU shares (relative weight)
- working_dir (str): Path to the working directory
- domainname (str or list): Set custom DNS search domains
- memswap_limit (int):
- host_config (dict): A HostConfig dictionary
- mac_address (str): The Mac Address to assign the container
- labels (dict or list): A dictionary of name-value labels (e.g.
{'label1': 'value1', 'label2': 'value2'}
) or a list of names of labels to set with empty values (e.g.['label1', 'label2']
) - volume_driver (str): The name of a volume driver/plugin.
Returns (dict): A dictionary with an image 'Id' key and a 'Warnings' key.
docker.utils.parse_env_file
A utility for parsing an environment file.
The expected format of the file is as follows:
The utility can be used as follows:
You can now use this with 'environment' for create_container
.
create_volume
Create and register a named volume
Params:
- name (str): Name of the volume
- driver (str): Name of the driver used to create the volume
- driver_opts (dict): Driver options as a key-value dictionary
Returns (dict): The created volume reference object
diff
Inspect changes on a container's filesystem.
Params:
- container (str): The container to diff
Returns (str):
events
Identical to the docker events
command: get real time events from the server. The events
function return a blocking generator you can iterate over to retrieve events as they happen.
Params:
- since (UTC datetime or int): get events from this point
- until (UTC datetime or int): get events until this point
- filters (dict): filter the events by event time, container or image
- decode (bool): If set to true, stream will be decoded into dicts on the fly. False by default.
Returns (generator):
execute
This command is deprecated for docker-py >= 1.2.0 ; use exec_create
andexec_start
instead.
exec_create
Sets up an exec instance in a running container.
Params:
- container (str): Target container where exec instance will be created
- cmd (str or list): Command to be executed
- stdout (bool): Attach to stdout of the exec command if true. Default: True
- stderr (bool): Attach to stderr of the exec command if true. Default: True
- since (UTC datetime or int): Output logs from this timestamp. Default:
None
(all logs are given) - tty (bool): Allocate a pseudo-TTY. Default: False
- user (str): User to execute command as. Default: root
Returns (dict): A dictionary with an exec 'Id' key.
exec_inspect
Return low-level information about an exec command.
Params:
- exec_id (str): ID of the exec instance
Returns (dict): Dictionary of values returned by the endpoint.
exec_resize
Resize the tty session used by the specified exec command.
Params:
- exec_id (str): ID of the exec instance
- height (int): Height of tty session
- width (int): Width of tty session
exec_start
Start a previously set up exec instance.
Params:
- exec_id (str): ID of the exec instance
- detach (bool): If true, detach from the exec command. Default: False
- tty (bool): Allocate a pseudo-TTY. Default: False
- stream (bool): Stream response data. Default: False
Returns (generator or str): If stream=True
, a generator yielding responsechunks. A string containing response data otherwise.
export
Export the contents of a filesystem as a tar archive to STDOUT.
Params:
- container (str): The container to export
Returns (str): The filesystem tar archive as a str
get_archive
Retrieve a file or folder from a container in the form of a tar archive.
Params:
- container (str): The container where the file is located
- path (str): Path to the file or folder to retrieve
Returns (tuple): First element is a raw tar data stream. Second element isa dict containing stat
information on the specified path
.
get_image
Get an image from the docker daemon. Similar to the docker save
command.
Params:
- image (str): Image name to get
Returns (urllib3.response.HTTPResponse object): The response from the docker daemon
An example of how to get (save) an image to a file.
history
Show the history of an image.
Params:
- image (str): The image to show history for
Returns (str): The history of the image
images
List images. Identical to the docker images
command.
Params:
- name (str): Only show images belonging to the repository
name
- quiet (bool): Only show numeric Ids. Returns a list
- all (bool): Show all images (by default filter out the intermediate imagelayers)
- filters (dict): Filters to be processed on the image list. Available filters:
dangling
(bool)label
(str): format either'key'
or'key=value'
Returns (dict or list): A list if quiet=True
, otherwise a dict.
import_image
Similar to the docker import
command.
If src
is a string or unicode string, it will first be treated as a path toa tarball on the local system. If there is an error reading from that file,src will be treated as a URL instead to fetch the image from. You can also passan open file handle as 'src', in which case the data will be read from thatfile.
If src
is unset but image
is set, the image
parameter will be taken asthe name of an existing image to import from.
Params:
- src (str or file): Path to tarfile, URL, or file-like object
- repository (str): The repository to create
- tag (str): The tag to apply
- image (str): Use another image like the
FROM
Dockerfile parameter
import_image_from_data
Text art on word for mac. Like .import_image()
, but allows importing in-memory bytes data.
Params:
- data (bytes collection): Bytes collection containing valid tar data
- repository (str): The repository to create
- tag (str): The tag to apply
import_image_from_file
Like .import_image()
, but only supports importing from a tar file ondisk. If the file doesn't exist it will raise IOError
.
Params:
- filename (str): Full path to a tar file.
- repository (str): The repository to create
- tag (str): The tag to apply
import_image_from_url
Like .import_image()
, but only supports importing from a URL.
Params:
Docker For Mac V1 Registry Api Documentation
- url (str): A URL pointing to a tar file.
- repository (str): The repository to create
- tag (str): The tag to apply
import_image_from_image
Like .import_image()
, but only supports importing from another image,like the FROM
Dockerfile parameter.
Params:
- image (str): Image name to import from
- repository (str): The repository to create
- tag (str): The tag to apply
info
Display system-wide information. Identical to the docker info
command.
Returns (dict): The info as a dict
insert
DEPRECATED
inspect_container
Identical to the docker inspect
command, but only for containers.
Params:
- container (str): The container to inspect
Returns (dict): Nearly the same output as docker inspect
, just as asingle dict
inspect_image
Identical to the docker inspect
command, but only for images.
Params:
- image_id (str): The image to inspect
Returns (dict): Nearly the same output as docker inspect
, just as asingle dict
inspect_volume
Retrieve volume info by name.
Params:
- name (str): volume name
Returns (dict): Volume information dictionary
kill
Kill a container or send a signal to a container.
Params:
- container (str): The container to kill
- signal (str or int): The signal to send. Defaults to
SIGKILL
load_image
Load an image that was previously saved using Client.get_image
(or docker save
). Similar to docker load
.
Params:
- data (binary): Image data to be loaded
login
Nearly identical to the docker login
command, but non-interactive.
Params:
- username (str): The registry username
- password (str): The plaintext password
- email (str): The email for the registry account
- registry (str): URL to the registry. Ex:
https://index.docker.io/v1/
- reauth (bool): Whether refresh existing authentication on the docker server.
- dockercfg_path (str): Use a custom path for the .dockercfg file (default
$HOME/.dockercfg
)
Returns (dict): The response from the login request
logs
Identical to the docker logs
command. The stream
parameter makes the logs
function return a blocking generator you can iterate over to retrieve logoutput as it happens.
Params:
- container (str): The container to get logs from
- stdout (bool): Get STDOUT
- stderr (bool): Get STDERR
- stream (bool): Stream the response
- timestamps (bool): Show timestamps
- tail (str or int): Output specified number of lines at the end of logs:
'all'
ornumber
. Default'all'
Returns (generator or str):
pause
Pauses all processes within a container.
Params:
- container (str): The container to pause
ping
Hits the /_ping
endpoint of the remote API and returns the result. Anexception will be raised if the endpoint isn't responding.
Returns (bool)
port
Lookup the public-facing port that is NAT-ed to private_port
. Identical tothe docker port
command.
Params:
- container (str): The container to look up
- private_port (int): The private port to inspect
Returns (list of dict): The mapping for the host ports
pull
Identical to the docker pull
command.
Params:
- repository (str): The repository to pull
- tag (str): The tag to pull
- stream (bool): Stream the output as a generator
- insecure_registry (bool): Use an insecure registry
- auth_config (dict): Override the credentials that Client.login has set for this request
auth_config
should contain theusername
andpassword
keys to be valid.
Returns (generator or str): The output
push
Push an image or a repository to the registry. Identical to the docker push
command.
Params:
- repository (str): The repository to push to
- tag (str): An optional tag to push
- stream (bool): Stream the output as a blocking generator
- insecure_registry (bool): Use
http://
to connect to the registry
Returns (generator or str): The output of the upload
put_archive
Insert a file or folder in an existing container using a tar archive as source.
Params:
- container (str): The container where the file(s) will be extracted
- path (str): Path inside the container where the file(s) will be extracted. Must exist.
- data (bytes): tar data to be extracted
Returns (bool): True if the call succeeds. docker.errors.APIError
willbe raised if an error occurs.
remove_container
Remove a container. Similar to the docker rm
command.
Params:
- container (str): The container to remove
- v (bool): Remove the volumes associated with the container
- link (bool): Remove the specified link and not the underlying container
- force (bool): Force the removal of a running container (uses SIGKILL)
remove_image
Remove an image. Similar to the docker rmi
command.
Params:
- image (str): The image to remove
- force (bool): Force removal of the image
- noprune (bool): Do not delete untagged parents
remove_volume
Remove a volume. Similar to the docker volume rm
command.
Params:
- name (str): The volume's name
events
Identical to the docker events
command: get real time events from the server. The events
function return a blocking generator you can iterate over to retrieve events as they happen.
Params:
- since (UTC datetime or int): get events from this point
- until (UTC datetime or int): get events until this point
- filters (dict): filter the events by event time, container or image
- decode (bool): If set to true, stream will be decoded into dicts on the fly. False by default.
Returns (generator):
execute
This command is deprecated for docker-py >= 1.2.0 ; use exec_create
andexec_start
instead.
exec_create
Sets up an exec instance in a running container.
Params:
- container (str): Target container where exec instance will be created
- cmd (str or list): Command to be executed
- stdout (bool): Attach to stdout of the exec command if true. Default: True
- stderr (bool): Attach to stderr of the exec command if true. Default: True
- since (UTC datetime or int): Output logs from this timestamp. Default:
None
(all logs are given) - tty (bool): Allocate a pseudo-TTY. Default: False
- user (str): User to execute command as. Default: root
Returns (dict): A dictionary with an exec 'Id' key.
exec_inspect
Return low-level information about an exec command.
Params:
- exec_id (str): ID of the exec instance
Returns (dict): Dictionary of values returned by the endpoint.
exec_resize
Resize the tty session used by the specified exec command.
Params:
- exec_id (str): ID of the exec instance
- height (int): Height of tty session
- width (int): Width of tty session
exec_start
Start a previously set up exec instance.
Params:
- exec_id (str): ID of the exec instance
- detach (bool): If true, detach from the exec command. Default: False
- tty (bool): Allocate a pseudo-TTY. Default: False
- stream (bool): Stream response data. Default: False
Returns (generator or str): If stream=True
, a generator yielding responsechunks. A string containing response data otherwise.
export
Export the contents of a filesystem as a tar archive to STDOUT.
Params:
- container (str): The container to export
Returns (str): The filesystem tar archive as a str
get_archive
Retrieve a file or folder from a container in the form of a tar archive.
Params:
- container (str): The container where the file is located
- path (str): Path to the file or folder to retrieve
Returns (tuple): First element is a raw tar data stream. Second element isa dict containing stat
information on the specified path
.
get_image
Get an image from the docker daemon. Similar to the docker save
command.
Params:
- image (str): Image name to get
Returns (urllib3.response.HTTPResponse object): The response from the docker daemon
An example of how to get (save) an image to a file.
history
Show the history of an image.
Params:
- image (str): The image to show history for
Returns (str): The history of the image
images
List images. Identical to the docker images
command.
Params:
- name (str): Only show images belonging to the repository
name
- quiet (bool): Only show numeric Ids. Returns a list
- all (bool): Show all images (by default filter out the intermediate imagelayers)
- filters (dict): Filters to be processed on the image list. Available filters:
dangling
(bool)label
(str): format either'key'
or'key=value'
Returns (dict or list): A list if quiet=True
, otherwise a dict.
import_image
Similar to the docker import
command.
If src
is a string or unicode string, it will first be treated as a path toa tarball on the local system. If there is an error reading from that file,src will be treated as a URL instead to fetch the image from. You can also passan open file handle as 'src', in which case the data will be read from thatfile.
If src
is unset but image
is set, the image
parameter will be taken asthe name of an existing image to import from.
Params:
- src (str or file): Path to tarfile, URL, or file-like object
- repository (str): The repository to create
- tag (str): The tag to apply
- image (str): Use another image like the
FROM
Dockerfile parameter
import_image_from_data
Text art on word for mac. Like .import_image()
, but allows importing in-memory bytes data.
Params:
- data (bytes collection): Bytes collection containing valid tar data
- repository (str): The repository to create
- tag (str): The tag to apply
import_image_from_file
Like .import_image()
, but only supports importing from a tar file ondisk. If the file doesn't exist it will raise IOError
.
Params:
- filename (str): Full path to a tar file.
- repository (str): The repository to create
- tag (str): The tag to apply
import_image_from_url
Like .import_image()
, but only supports importing from a URL.
Params:
Docker For Mac V1 Registry Api Documentation
- url (str): A URL pointing to a tar file.
- repository (str): The repository to create
- tag (str): The tag to apply
import_image_from_image
Like .import_image()
, but only supports importing from another image,like the FROM
Dockerfile parameter.
Params:
- image (str): Image name to import from
- repository (str): The repository to create
- tag (str): The tag to apply
info
Display system-wide information. Identical to the docker info
command.
Returns (dict): The info as a dict
insert
DEPRECATED
inspect_container
Identical to the docker inspect
command, but only for containers.
Params:
- container (str): The container to inspect
Returns (dict): Nearly the same output as docker inspect
, just as asingle dict
inspect_image
Identical to the docker inspect
command, but only for images.
Params:
- image_id (str): The image to inspect
Returns (dict): Nearly the same output as docker inspect
, just as asingle dict
inspect_volume
Retrieve volume info by name.
Params:
- name (str): volume name
Returns (dict): Volume information dictionary
kill
Kill a container or send a signal to a container.
Params:
- container (str): The container to kill
- signal (str or int): The signal to send. Defaults to
SIGKILL
load_image
Load an image that was previously saved using Client.get_image
(or docker save
). Similar to docker load
.
Params:
- data (binary): Image data to be loaded
login
Nearly identical to the docker login
command, but non-interactive.
Params:
- username (str): The registry username
- password (str): The plaintext password
- email (str): The email for the registry account
- registry (str): URL to the registry. Ex:
https://index.docker.io/v1/
- reauth (bool): Whether refresh existing authentication on the docker server.
- dockercfg_path (str): Use a custom path for the .dockercfg file (default
$HOME/.dockercfg
)
Returns (dict): The response from the login request
logs
Identical to the docker logs
command. The stream
parameter makes the logs
function return a blocking generator you can iterate over to retrieve logoutput as it happens.
Params:
- container (str): The container to get logs from
- stdout (bool): Get STDOUT
- stderr (bool): Get STDERR
- stream (bool): Stream the response
- timestamps (bool): Show timestamps
- tail (str or int): Output specified number of lines at the end of logs:
'all'
ornumber
. Default'all'
Returns (generator or str):
pause
Pauses all processes within a container.
Params:
- container (str): The container to pause
ping
Hits the /_ping
endpoint of the remote API and returns the result. Anexception will be raised if the endpoint isn't responding.
Returns (bool)
port
Lookup the public-facing port that is NAT-ed to private_port
. Identical tothe docker port
command.
Params:
- container (str): The container to look up
- private_port (int): The private port to inspect
Returns (list of dict): The mapping for the host ports
pull
Identical to the docker pull
command.
Params:
- repository (str): The repository to pull
- tag (str): The tag to pull
- stream (bool): Stream the output as a generator
- insecure_registry (bool): Use an insecure registry
- auth_config (dict): Override the credentials that Client.login has set for this request
auth_config
should contain theusername
andpassword
keys to be valid.
Returns (generator or str): The output
push
Push an image or a repository to the registry. Identical to the docker push
command.
Params:
- repository (str): The repository to push to
- tag (str): An optional tag to push
- stream (bool): Stream the output as a blocking generator
- insecure_registry (bool): Use
http://
to connect to the registry
Returns (generator or str): The output of the upload
put_archive
Insert a file or folder in an existing container using a tar archive as source.
Params:
- container (str): The container where the file(s) will be extracted
- path (str): Path inside the container where the file(s) will be extracted. Must exist.
- data (bytes): tar data to be extracted
Returns (bool): True if the call succeeds. docker.errors.APIError
willbe raised if an error occurs.
remove_container
Remove a container. Similar to the docker rm
command.
Params:
- container (str): The container to remove
- v (bool): Remove the volumes associated with the container
- link (bool): Remove the specified link and not the underlying container
- force (bool): Force the removal of a running container (uses SIGKILL)
remove_image
Remove an image. Similar to the docker rmi
command.
Params:
- image (str): The image to remove
- force (bool): Force removal of the image
- noprune (bool): Do not delete untagged parents
remove_volume
Remove a volume. Similar to the docker volume rm
command.
Params:
- name (str): The volume's name
Returns (bool): True on successful removal. Failure will raise adocker.errors.APIError
exception.
rename
Rename a container. Similar to the docker rename
command.
Params:
- container (str): ID of the container to rename
- name (str): New name for the container
resize
Resize the tty session.
Params:
- container (str or dict): The container to resize
- height (int): Height of tty session
- width (int): Width of tty session
restart
Restart a container. Similar to the docker restart
command.
If container
a dict, the Id
key is used.
Params:
- container (str or dict): The container to restart
- timeout (int): Number of seconds to try to stop for before killing thecontainer. Once killed it will then be restarted. Default is 10 seconds.
search
Identical to the docker search
command.
Params:
- term (str): A term to search for
Returns (list of dicts): The response of the search
start
Similar to the docker start
command, but doesn't support attach options. Use.logs()
to recover stdout
/stderr
.
Params:
- container (str): The container to start
Deprecation warning: For API version > 1.15, it is highly recommended to provide host config options in the host_config
parameter of create_container
stats
The Docker API parallel to the docker stats
command.This will stream statistics for a specific container.
Params:
- container (str): The container to stream statistics for
- decode (bool): If set to true, stream will be decoded into dicts on the fly. False by default.
- stream (bool): If set to false, only the current stats will be returned instead of a stream. True by default.
stop
Stops a container. Similar to the docker stop
command.
Params:
- container (str): The container to stop
- timeout (int): Timeout in seconds to wait for the container to stop beforesending a
SIGKILL
tag
Tag an image into a repository. Identical to the docker tag
command.
Params:
Docker For Mac V1 Registry Api Download
- image (str): The image to tag
- repository (str): The repository to set for the tag
- tag (str): The tag name
- force (bool): Force
Returns (bool): True if successful Saint seiya episodes english dub.
top
Display the running processes of a container.
Params:
- container (str): The container to inspect
- ps_args (str): An optional arguments passed to ps (e.g., aux)
Returns (str): The output of the top
unpause
Unpauses all processes within a container.
Params:
- container (str): The container to unpause
version
Nearly identical to the docker version
command.
Returns (dict): The server version information
volumes
List volumes currently registered by the docker daemon. Similar to the docker volume ls
command.
Params
- filters (dict): Server-side list filtering options.
Returns (dict): Dictionary with list of volume objects as value of the Volumes
key.
wait
Identical to the docker wait
command. Block until a container stops, thenreturn its exit code. Returns the value -1
if the API responds without aStatusCode
attribute.
If container
is a dict, the Id
key is used.
If the timeout value is exceeded, a requests.exceptions.ReadTimeout
exception will be raised.
Params:
- container (str or dict): The container to wait on
- timeout (int): Request timeout
Returns (int): The exit code of the container
Key Features and Capabilities
The fastest way to design and deliver containerized applications and microservices on the desktop and cloud.
Simple Setup for Docker and Kubernetes
No need to fiddle with VMs or add a bunch of extra components; simply install from a single package and have your first containers running in minutes. You get certified Kubernetes and Docker, for developers of all levels of container expertise.
Certified Kubernetes
Setup a fully functional Kubernetes environment on your desktop with a single click and start developing and testing modern applications in minutes. Change ip mac app.
Application Templates and App Designer
Customize and share multi-service applications and service templates that are tailored to your organization. Pre-defined and customizable application templates adhere to corporate standards and automate configuration, eliminating error-prone manual setup. Intuitive Application Designer facilitates the packaging, installing, and managing of multi-service applications as a shareable package.