Skip to content

Latest commit

 

History

History
502 lines (418 loc) · 29.6 KB

CHANGELOG.md

File metadata and controls

502 lines (418 loc) · 29.6 KB

Change Log

3.2.0

  • Changelog is not maintained in this file. Please follow git diff or github releases.
  • Library was split into multiple modules to get ability to choose transports. Okhttp was added (say thanks to @bsideup).
  • Various cleanup, tests de-duplication internally. Planned binary compatibility breakage was reverted by @testcontainers project, so migration should work smoothly. Please switch to non-deprecated methods.
  • Appeared various new commands and Fields(command options for existing commands).

3.1.2

  • update unix-socket to 2.2.0
  • Remove JacksonJaxbJsonProvider from FiltersEncoder
  • BuildImageCmdImpl: Fix an exception message
  • Add support for target parameter in BuildImgCmd
  • Add prune operations
  • Updating Jackson due to CVEs
  • Make StatsConfig public
  • Set 3 mb as limit for json responce.

3.1.1

  • Patch save image with tag
  • [api/healthcheck] startPeriod is now a long

3.1.0

  • Release

3.1.0-rc-8

  • Do awaitCompletion upon socket close exception
  • Fix X-Registry-Auth base64 encoding

3.1.0-rc-7

  • Fix NPE when docker config file doesn't exist

3.1.0-rc-6

  • Add resize feature to container and exec
  • Update part of apis to 1.37
  • Update dependencies
  • Fix No serializer found for class com.githubdockerjava.api.model.ServiceGlobalModeOptions
  • Add HostConfig.StorageOpt and ExecCreateCmd.Env
  • Added GCPLOGS enum LoggingType
  • Stop proxying HostConfig class (static helper provided)
  • Add ExecCreateCmd.Env
  • Add failcnt into memorystatsconfig
  • Support some missing Engine APIs
  • Added memory swappiness to create container command.
  • Fix for ignore all files except specified

3.1.0-rc-5

  • Add missing properties in InspectContainer response
  • Add withFilter methods in ListNetworksCmd & ListVolumesCmd
  • Add WorkingDir property in containers exec
  • Add isolation property support in Info response
  • Support platform option in image build/create/pull commands
  • Add OSVersion and RootFS support in InspectImageResponse
  • Fix double-marshalling of cachefrom
  • make AuthConfig compatible with indentitytoken
  • Allow netty to handle compressed response bodies

3.1.0-rc-4

  • Update deps
  • fix HTTP/1.1 compliance (missing Host header)
  • support rollback_completed value in ServiceUpdateState
  • Add Privileged property to ExecCreateCmd
  • Encode spaces as %20 rather than + in URL params
  • Add tmpfs mount support since v1.29
  • Add support for swarm service/task logs
  • Add mapping annotations to custom constructor
  • Support network mode as part of the docker build
  • support "rollback" as value for UpdateFailureAction
  • Add "Pid" field to InspectExecResponse
  • Add DiskQuota to HostConfig and CreateContainerCmd
  • Add AutoRemove to HostConfig
  • follow symbolic links when walking dir
  • Use path from the configured docker host instead of hardcoded "/var/run/docker.sock" in netty factory
  • Configure JerseyDockerCmdExecFactory to avoid chunked encoding

3.1.0-rc-3

  • export TmpFs configuration for HostConfig and DockerClient
  • avoid double encoding for url query string

3.1.0-rc-2

3.1.0-rc-1

A lot of changes...

  • Swarm Mode support.
  • Classic swarm support.
  • various netty improvements
  • Implement AbstractDockerCmdExecFactory

3.0.14

  • Encode spaces as %20 rather than + in URL params

3.0.13

  • Fix .dockerignore handling on Windows
  • Include empty directories in build context

3.0.12

  • Make NettyDockerCmdExecFactory has compatibility both Linux and OSX automatically
  • Fix double encoding for netty.
  • filter config.json before unmarshalling (creds/auth)

3.0.11

  • Add labels and attachable properties to network.
  • Set default socket timeout for RequestConfig.
  • Netty skip instead of throw error on non-linux os.
  • Clean tmp file after upload.
  • Filters ignore application/x-tar.
  • Allow user to call connectionManager's closeIdleConnections.

3.0.10

  • Support for cache-from in build image command
  • Allow multiple tags in build image command
  • Custom db logging type
  • Allow an explicit Dockerfile location string to be specified to theuild command
  • Fix image build for docker 17 with 'tagged' word.

3.0.9

  • NettyDockerCmdExecFactory ignores API version
  • exclude commons-logging from httpclient since docker-java uses slf4j/logback
  • Generate OSGi compliant manifest
  • AuthResponse may contains token.

3.0.8

  • Use TLSv1.2 by default
  • Health api
  • Labels
  • Support for multiple certificates

3.0.7

3.0.6

  • Fixed issue with jersey and unix domain sockets.
  • #703 Allow to configure connection pool timeout.
  • Make all models Serializable.
  • [NETTY] Fix loadImage responce on 1.24 API.
  • LogPath field for inspect container.
  • [#700] (#700) Bugfix:donot throw RuntimeException when a error occured in awaitCompletion(long,TimeUnit)

3.0.5

  • Events updated to 1.24 API model.

3.0.4

  • Make cert util methods public.

3.0.3

  • [JERSEY] Don't send body for start container request.

3.0.2

  • Enhanced Dockerignore filtering.
  • Added shmsize for hostconfig.
  • Exposed HostConfig instead of spaghetty calls.

3.0.1

All changes

  • Updated all dependencies
  • [#643] (#643) Fixes for .dockerignore filtering
  • [#627] (#627) Implementation of POST /images/load endpoint
  • [#630] (#630) Fix: Second execution of a docker command in Netty implementation always fails
  • [#596] (#596) Refactor configuration of SSL to allow override with custom config
  • [#529] (#529) Refactor CertUtils. Support ECDSA and PrivateKey
  • [#593] (#593) Added Device.parse() method with simple verification.

v3.0.0

Notes

  • The 3.0.0 release contains multiple API breaking changes compared to 2.x therefore the major version switch. It supports a subset of v.1.22 of the docker remote API. It also includes an experimental netty based implementation of DockerCmdExecFactory that probably will replace the current jersey/httpclient based one in a later release. Take a look at the Wiki how to use it.
  • The configuration has been changed to better match the docker CLI configuration options. The properties file was renamed from docker.io.properties to docker-java.properties. See README.md for details.

All changes

  • [#590] (#590) Fix default docker.properties to match with docker CLI defaults
  • [#585] (#585) Add RootDir property to GraphData
  • [#580] (#580) Fixes execute permissions for files when copied to container
  • [#579] (#579) Adds missing name filter evaluation to netty version of ListImagesCmdExec
  • [#578] (#578) Fix error during image build when Dockerfile in subdirectory of build context
  • [#575] (#575) Support binding of port ranges
  • [#574] (#574) Fix for copyArchiveToContainerCmd bug
  • [#572] (#572) Inspect container command now shows sizes if requested
  • [#563] (#563) Fix memory leak in netty implementation of DockerCmdExecFactory
  • [#550] (#550) Add ability to configure IPAM config for CreateNetworkCmd
  • [#484] (#484) Implement missing network api options for v1.22

Included in 3.0.0-RC5

  • [#542] (#542) Fix large volumes of output from "docker exec" trigger out of memory error
  • [#541] (#541) ImageInspectResponse.GraphDriver.Data is more complex structure
  • [#534] (#534) Fix create volume command doesn't assign passed in volume driverOpts to field
  • [#533] (#533) Added shmsize build option

Included in 3.0.0-RC4

  • [#528] (#528) Fix DOCKER_TLS_VERIFY cannot be 'false' or empty
  • [#527] (#527) Fix mirrors field is list and not a single string #527
  • [#510] (#510) Add CgroupParent option for create cmd
  • [#509] (#509) Implement container rename api
  • [#501] (#501) Fix execution of copy file/archive command skips 0xFF bytes
  • [#500] (#500) Add aux to ResponseItem
  • [#498] (#498) Update image inspect response

Included in 3.0.0-RC3

  • [#488] (#488) Support remote API 1.22 subset

Included in 3.0.0-RC2

  • [#486] (#486) Fix NegativeArraySizeException in awaitCompletion()
  • [#472] (#472) Exec start command: detect end of STDIN stream
  • [#466] (#466) Fix exec start stdin encoding

Included in 3.0.0-RC1

  • [#463] (#463) More logging drivers
  • [#447] (#447) Refactoring of DockerClientConfig
  • [#430] (#430) Fix ExecStartCmd failure
  • [#426] (#426) Refactored filters API
  • [#425] (#425) Implement Network API
  • [#410] (#410) Support for build-args of docker build
  • [#408] (#408) Support for volume API
  • [#406] (#406) Added RestartCount to InspectContainerResponse
  • [#396] (#396) Disable evaluation of http.proxy... variables when using unix socket connection
  • [#393] (#393) Support ONBUILD instruction in Dockerfiles
  • [#392] (#392) Introduce InspectContainerResponse.Mounts
  • [#387] (#387) Make ProgressDetails attributes public
  • [#386] (#386) Basic http proxy configuration support
  • [#362] (#362) Deprecate "network" and enable "networks" stats (remote Docker API 1.21)
  • [#359] (#359) Fix performance issue of build command by adding bulk-read variant of InputStream.read()
  • [#357] (#357) Wait container command needs possibility to abort operation
  • [#347] (#347) Implementation of copy archive to/from container commands
  • [#313] (#313) Refactor primitive type fields to be of object type in JSON objects

v2.2.3

  • [#487] (#487) Fix NegativeArraySizeException in awaitCompletion()

v2.2.2

  • [#478] (#478) Remove debug println

v2.2.1

  • [#474] (#474) Fix periodic pull failure (2.x)

v2.2.0

  • [#457] (#457) Input configuration should not be altered as it breaks unix socket support
  • [#430] (#430) Fix ExecStartCmd failure (backported from 3.0.0)

v2.1.4

  • [#396] (#396) Disable evaluation of http.proxy... variables when using unix socket connection
  • [#359] (#359) Fix performance issue of build command by adding bulk-read variant of InputStream.read()

v2.1.3

  • [#387] (#387) Make ProgressDetails attributes public
  • [#386] (#386) Basic http proxy configuration support
  • [#362] (#362) Deprecate "network" and enable "networks" stats (remote Docker API 1.21)

v2.1.2

  • [#350] (#350) Remove ServiceLoader logic
  • [#344] (#344) Implement equals/hashCode for Filters
  • [#335] (#335) Improve backward-compatibility support for older API versions
  • [#333] (#333) Adding support for withPidMode

v2.1.1

  • [#326] (#326) Add all missing fields to ResponseItem and related classes
  • [#320] (#320) Support "since" field for logs command

v2.1.0

  • [#306] (#306) fix(core): fix NPE if latestItem is null in result callback
  • [#305] (#305) chore(core): do not expect default DockerCmdExecFactory service
  • [#304] (#304) Throw original exception when command.close() throws Exception too
  • [#299] (#299) BuildImage sync to 1.20 API
  • [#291] (#291) Moved "Memory", "MemorySwap" and "CpuShares" mappings from ContainerConfig to HostConfig

v2.0.1

Release notes

  • This is a bugfix release. With this release docker >= v1.7.0 is recommended.

All changes

  • [#301] (#301) Respect exception rules in .dockerignore file while build images
  • [#298] (#298) Fix repository name validation errors
  • [#296] (#296) Fix Build FROM private registry broken with docker 1.7.x
  • [#295] (#295) Support certificate chains in cert.pem
  • [#287] (#287) Using the oomKillDisable flag throws a null pointer exception

v2.0.0

Release notes

  • Some commands APIs has been changed to be callback-driven now to simplify the processing of the result streams for the client application. This affects namely the events, stats, log, attach, build, push and pull commands. Look at the Wiki how to process events or how to build an image from dockerfile for example.
  • The DockerClientConfig API has changed to free it from implementation specific configuration options like readTimeout, maxTotalConnections, maxPerRouteConnections and enableLoggingFilter. Most options can be configured via DockerCmdExecFactoryImpl programmatically now. Logging is configurable via logback configuration file in the classpath.

All changes

  • #284 Added GZIP compression for build context creation
  • #282 Remove JAXRS/ApacheConnector implementation specific properties from DockerClientConfig
  • #280 Handle multiple source files in ADD command
  • #278 Stop leaking tar files in temporary folder
  • #275 Implemented LogConfig (create and inspect containers)
  • #272 remove withHostConfig() from create container command
  • #270 Passing result callbacks for async commands via commands exec()
  • #269 Add filters option to events operation
  • #268 Concurrent DockerCmdExecFactory.getDefaultDockerCmdExecFactory fails on reload
  • #263 Refactoring of streaming commands APIs (event, stats, log, attach)
  • #262 Accept filters in list containers
  • #260 Add labels to create and inspect container

v1.4.0

  • #248 Removed deprecated start options
  • #247 Add Domainname attribute on create command
  • #245 Added ReadonlyRootfs option
  • #233 Labels are array of Strings (fixes #232)
  • #189 Add docker stats support

v1.3.0

  • #213 Add ulimit support
  • #208 Added PullEventStreamItem and EventStreamReader to stream the reading of events
  • #205 Access mode of VolumesRW incorrectly deserialized
  • [#204] (#204) Added support to use the credentials from .dockercfg during build
  • #203 Missing 'MacAddress' option in create container command
  • #197 Allow for null bindings

v1.2.0

  • #194 Fixed remove intermediate containers bug on build goal
  • #193 Add HostConfig related methods from start command to create command
  • #192 Added a Links constructor accepting a List object

v1.1.0

  • #186 Added withPull method to BuilImageCmd
  • #185 Introduce WrappedResponseInputStream to close underlying Response
  • #180 Dockerfiles not called 'dockerfile'
  • #179 Add support for cpuset in CreateContainerCmd
  • #170 Allow to specify alternative files other than 'Dockerfile' for building images
  • #165 PushImageCmd assumes that you have an auth config setup
  • #161 Inspect exec command
  • #159 Add missing Info fields
  • #156 Add support for configuring ExtraHosts
  • #146 Create Identifier type

v1.0.0

  • #152 Restore guava as a dependency
  • #149 Handle HTTP-Redirects
  • #148 Save image functionality
  • #142 Reduce Logging Level
  • #138 Apache CXF interopabilty
  • #137 Multiple volumesFrom option when creating a container
  • #135 Update to latest unix-socket-factory
  • #134 Remove Google Guava as dependency
  • #131 Utility classes and streamed JSON representations
  • #128 Allow unauthorized pullImageCmd

v0.10.5

  • #125 Unixsocket support
  • #123 support DOCKER_TLS_VERIFY to detect ssl
  • #121 Implemented support for commands: Exec-start, Exec-create
  • #120 Command resource cleanup after command execution
  • #118 Use chunked encoding when passing the docker image
  • #116 Allow SSL configuration from pre-existing keystore to be used
  • #115 Polish RestartPolicy
  • #114 Fix CreateContainerCmdImpl.withVolumesFrom()
  • #111 Allow to send empty messages in StartContainerCmd

v0.10.4

  • #109 Support tag in push image command
  • #106 Allow to manage Linux capabilities in CreateContainerCmd
  • #105 Allow to pass HostConfig when creating a container
  • #103 Make GoLangMatchFileFilter work on Windows
  • #102 Downgraded jackson-jaxrs dependency version
  • #101 list filtered images as described in the remote api docs
  • #100 Add support for .dockercfg files to handle auth for push command
  • #95 Add support for .dockerignore files
  • #92 Add travis-ci support
  • #90 Update DockerClientBuilder.java
  • #88 Add support for private repositories and pull/push authentication

v0.10.3

  • #87 Improve adding of port bindings
  • #83 Loading of custom DockerCmdExecFactory
  • #81 Env config
  • #82 Allow multiple port bindings per ExposedPort
  • #80 explicitly use the latest image version
  • #79 Move slow tests to integration test phase, enable tests by default
  • #76 New enum "InternetProtocol" for supported IP protocols replaces "scheme"
  • #75 Use ExposedPort.toString() in serialization
  • #74 Use project.build.sourceEncoding in compiler
  • #73 Improve parsing and serialization of Link
  • #70 Improve instantiation and serialization of Bind

v0.10.2

  • #69 Use canonical form of Docker folder when building TAR files
  • #68 Set Jersey client CommonProperties.FEATURE_AUTO_DISCOVERY_DISABLE
  • #67 typo in README.md
  • #65 Added static method udp in ExposedPort
  • #63 Bind.parse() fails when access mode is specified
  • #57 Add streaming events API
  • #59 Update readme to include corrected api example
  • #2 Move to new maven coordinate com.github.docker-java:docker-java
  • #56 Update README.md
  • #58 Code clear and bug fix

v0.10.1

  • #49 Allow user to check where volume is binded on host
  • #47 let CompressArchiveUtil preserve executable flags
  • #46 Fixes to AttachContainerCmd and CreateContainerCmd.

v0.10.0

  • #45 Fix Issue #44 Adjusting DNS property type to be a String array as specified by the Doc...
  • #38 Remove special-case for one ":" from PullCommand
  • #37 Starts v0.10.0
  • #35 Exposing the withTTY method for container creation.

v0.9.1

  • #31 Change VolumesFrom to handle array
  • #29 Makes Config a public, immutable class with a builder
  • #22 Fixes for startContainerCmd
  • #19 Add missing options to BuildCmd and set them to match Docker client.
  • #16 Build image improvements

v0.9.0

  • #14 Use RegEx to match ADD command from Dockerfile.
  • #9 Add a build command accepting a tar as a InputStream, so we can build the Dockerfile TAR on the fly without a temporary folder.

v0.8.2

  • #2 Move to new maven coordinate com.github.docker-java:docker-java
  • #1 Merge
  • #2 Move to new maven coordinate com.github.docker-java:docker-java
  • #66 Backport the new structure to Jersey 1.18
  • #65 Added static method udp in ExposedPort
  • #61
  • #60 Added additional callback methods to EventCallback
  • #1 Merge
  • #55
  • #58 Code clear and bug fix
  • #54
  • #3
  • #2 Move to new maven coordinate com.github.docker-java:docker-java
  • #1 Merge
  • #34
  • #36
  • #37 Starts v0.10.0
  • #32

v0.8.1

v0.8.1

  • #28 Improves use of docker-java in unit tests
  • #30 Add ping method
  • #27 Added a close method to DockerClient
  • #26
  • #24
  • #23
  • #22 Fixes for startContainerCmd
  • #20
  • #19 Add missing options to BuildCmd and set them to match Docker client.
  • #18 Added Container-Linking
  • #16 Build image improvements
  • #15 Collection of changes driven by use in gradle-docker and on Windows
  • #14 Use RegEx to match ADD command from Dockerfile.
  • #9 Add a build command accepting a tar as a InputStream, so we can build the Dockerfile TAR on the fly without a temporary folder.
  • #5 add paused field in ContainerInspectResponse
  • #6