A Python library for the Docker Engine API
APACHE-2.0 License
Bot releases are hidden (Show)
Published by shin- about 7 years ago
List of PRs / issues for this release
squash
parameter in APIClient.build
andDockerClient.images.build
.load_image
will now return adict
s.remove_image
now returns the content of the API's response.auto_remove
parameter inDockerClient.containers.run
was not taken into account..dockerignore
patterns starting with a slash**
patterns in .dockerignore
FROM
a private Docker Hub image when notcreate_service
or update_service
withtask_template
as a dict
would raise an exception.attach
and exec_run
.DockerClient.containers.run
will no longer attempt to stream logs if thedocker[tls]
notation.Published by shin- about 7 years ago
List of issues / PRs for this release
split_port
utility would raise an exception whenPublished by shin- over 7 years ago
List of PRs / issues for this release
target
and network_mode
parameters inAPIClient.build
and DockerClient.images.build
.runtime
parameter in APIClient.create_container
DockerClient.containers.run
.ingress
parameter in APIClient.create_network
andDockerClient.networks.create
.placement
configuration in docker.types.TaskTemplate
.tty
configuration in docker.types.ContainerSpec
.start_period
configuration in docker.types.Healthcheck
.credHelpers
section in Docker's configuration file is now recognized.DockerClient
using docker.from_env
DockerClient.secrets
was not accessible as a property.DockerClient.build
would sometimes return the wrongHostConfig.nano_cpus
exceeding 2^32 wouldImage.tag
now properly returns True
when the operation is successful.APIClient.logs
and Container.logs
now raise an exception if the since
NullResource
exception whenAPIClient
instances can now be pickled.Published by shin- over 7 years ago
List of PRs / issues for this release
HostConfig
parameters: volume_driver
,cpu_count
, cpu_percent
, nano_cpus
, cpuset_mems
.verbose
parameter in APIClient.inspect_network
andDockerClient.networks.get
.environment
parameter in APIClient.exec_create
Container.exec_run
reload_config
method to APIClient
, that lets the user reloadconfig.json
data from disk.labels
property to the Image
and Container
classes.image
property to the Container
class.replicas
to zero in ServiceMode
would notDockerClient.images.build
would report a failure aftertag
was set.DockerClient.images.pull
would fail to return thetag
was set.mounts
provided to APIClient.create_service
Network.containers
would crash when no containersNetwork.connect
and Network.disconnect
would notcpuset_cpus
parameter would not be properly set inAPIClient.create_host_config
.networks
argument in DockerClient.containers.run
has beennetwork
argument.Published by shin- over 7 years ago
List of PRs / issues for this release
status_code
attribute of APIError
exceptions wouldevents
method would time out unexpectedly if noPublished by shin- over 7 years ago
List of PRs / issues for this release
1.26
(Engine 1.13.1+)upgrade_plugin
method to the APIClient
classupgrade
method to the Plugin
classservice_logs
method to the APIClient
classlogs
method to the Service
classdf
method to APIClient
and DockerClient
init
and init_path
parameters in HostConfig
DockerClient.containers.run
hostname
parameter in ContainerSpec
andDockerClient.service.create
8000-8010:80
)TypeError
events
method in APIClient
and DockerClient
config.json
Published by shin- over 7 years ago
List of PRs / issues for this release
APIClient
: prune_containers
, prune_images
, prune_networks
,prune_volumes
DockerClient
: containers.prune
, images.prune
, networks.prune
,volumes.prune
APIClient
: configure_plugin
, create_plugin
, disable_plugin
,enable_plugin
, inspect_plugin
, pull_plugin
, plugins
,plugin_privileges
, push_plugin
, remove_plugin
DockerClient
: plugins.create
, plugins.get
, plugins.install
,plugins.list
, and the Plugin
model.APIClient
: create_secret
, inspect_secret
, remove_secret
,secrets
DockerClient
: secret.create
, secret.get
, secret.list
andSecret
model.secrets
parameter to ContainerSpec
. Each item in the secrets
docker.types.SecretReference
instance.cache_from
in APIClient.build
andDockerClient.images.build
.auto_remove
and storage_opt
inAPIClient.create_host_config
and DockerClient.containers.run
stop_timeout
in APIClient.create_container
andDockerClient.containers.run
force
parameter in APIClient.remove_volume
andVolume.remove
max_failure_ratio
and monitor
in UpdateConfig
force_update
in TaskTemplate
name
parameter optional in APIClient.create_volume
andDockerClient.volumes.create
AttributeError
.DockerClient.swarm.init
method toImage.tag
now correctly returns a boolean value upon completion.volumes
inDockerClient.containers.run
DockerClient.image.build
wouldn't return an Image
Published by shin- over 7 years ago
List of PRs / issues for this release
docker-py
package isfilters
parameter to APIClient.networks
.DockerClient
are now hashable.DockerClient
TypeError
exception.mode
parameter in create_service
is now properly converted toServiceMode
for advancedAPIClient.events
stream would sometimes raisePublished by shin- almost 8 years ago
List of PRs / issues for this release
Mount.parse_mount_string
would never set the read_onlyMount
.Mount.parse_mount_string
would incorrectly mark hostvolume
type.Published by shin- almost 8 years ago
List of PRs / issues for this release
docker.Client
has been renamed to docker.APIClient
docker.from_env
now creates a DockerClient
instance instead of anAPIClient
instance.APIClient.start
pip
package is now docker
(was: docker-py
). Newdocker
from now on.docker.ssladapter
is now docker.transport.ssladapter
docker.auth
and docker.utils.ports
docker.utils.types
has been moved to docker.types
create_host_config
, create_ipam_pool
and create_ipam_config
have beendocker.utils
. They have been replaced by the following classesdocker.types
: HostConfig
, IPAMPool
and IPAMCOnfig
.docker.DockerClient
. See theupdate_node
method in APIClient
.remove_node
method in APIClient
.restart_policy
in update_container
.labels
and shmsize
in build
.attachable
in create_network
healthcheck
in create_container
.isolation
in HostConfig
.pid_mode
in HostConfig
(now supports arbitraryoptions
in IPAMConfig
HealthCheck
class to docker.types
to be used increate_container
.EndpointSpec
class to docker.types
to be used increate_service
and update_service
.build
if the client used a credentials store.build
.build
on Windows.networks
in create_service
andupdate_service
wouldn't be properly converted for the engine.endpoint_config
in create_service
andupdate_service
would be ignored.endpoint_config
in create_service
and update_service
has beenendpoint_spec
constraints
in a TaskTemplate
object wouldn't beenv
in ContainerSpec
APIError
when sent to the engine.env_file
containing empty lines increate_container
would raise an exception.detach
was being ignored by exec_start
.