Skip to content

Latest commit

 

History

History
437 lines (289 loc) · 13.6 KB

CHANGELOG.md

File metadata and controls

437 lines (289 loc) · 13.6 KB

Changelog

8.15.0

Released January 16, 2019

  • Upgrade jackson deps to from 2.9.6 to latest 2.9.8 (1132)
  • Relocate remaining packages that are included in shaded jar (1111)

8.14.5

  • Support for Windows 10 Docker named pipes (875)

8.14.0

Released October 4, 2018

  • Change maven-compiler-plugin source and target from 1.7 to 1.8 to prepare for Java 8. JAR should still be compatible with JRE 1.7.
  • Updates to allow docker-client to function on Java 9+ (1068)

8.13.0

Released August 29, 2018

  • Make ContainExit.exitCode(), HealthLog.exitCode() and ExecState.exitCode() return a Long instead of Integer.
  • Add support for runtime in HostConfig

8.12.0

Released August 26, 2018

  • Make ContainerState.exitCode() return a Long instead of Integer (1052)
  • Refactor authentication with docker config.json file (1051)
    • Add support for credsHelper (Fixes 1037)
    • Improve support for authenticating with multiple registries (Fixes 1042)

8.11.6

Released Jun 2, 2018

  • Make TaskStatus.containerStatus nullable (1005)
  • Support getting image information via /distribution
  • Support EC key spec algorithm (887)
  • Allow setting up DockerClientBuilder with RequestEntityProcessing

8.11.5

Released May 28, 2018

  • Support interrupting pull, push, build, and create

8.11.4

Released May 23, 2018

  • Fix DockerConfigReader when ~/.docker/config.json has no auths

8.11.3

Released May 20, 2018

  • Add support for Service placement preferences
  • Allow attaching to a not started container
  • Fix for #978: Docker client does not honour the -Dhttp.nonProxyHosts

8.11.2

Released March 14, 2018

  • Add basic documentation for networks
  • Make Network.options nullable (983)
  • Fix: honor -Dhttp.nonProxyHosts (978)
  • Fix: Shade HK2 implementation properly
  • Add support for credsStore in new docker versions

8.11.1

Released January 30, 2018

  • Fix for proxy usage (890)

8.11.0

Released January 25, 2018

  • Upgrade bouncy castle from 1.52 to 1.59
  • Add support for http.proxyUser and http.proxyPassword
  • Upgrade FasterXML Jackson from 2.8.8 to 2.9.4

8.10.1

Released January 15, 2018

  • Add Volume.Options
  • Fix containerAction: use query params
  • add support for automatic SELinux labeling
  • #890 fix for proxy usage
  • Set log level to debug when creating containers, fixes #908

8.10.0

Released November 28, 2017

  • ContainerConfig.exposedPorts is serialized as a map of keys to empty map placeholders. exposedPorts had been serialized as keys -> null. (Fixes 893)
  • Breaking API change: The method ContainerConfig.volumes() has changed signature from ImmutableMap<String, Map> volumes() (where the second Map was always empty) to ImmutableSet<String> volumes(). This change simplifies the code internally. (898)

8.9.2

Released November 15, 2017

  • Support loading auth config for repos with no scheme in their URL (910)
  • execStart should use the 'noTimeoutClient' (916)
  • upgrade to jnr-unixsocket 0.18 (918)
  • upgrade maven-shade-plugin from 2.4.1 to 3.1.0 (922; fixes 900)

8.9.1

Released September 26, 2017

  • Support creating a service without specifying a name (891 Allow ServiceSpec.name to be nullable)
  • Change TaskStatus.timestamp from String to Date (895)

8.8.5

Released August 14, 2017

  • Allow ImageInfo.RootFS to be nullable. This field was added in Docker Remote API 1.23 / Docker version 1.11. The field was added to the ImageInfo class in docker-client 8.8.2. (862)
  • Support list, inspect, create, update, and delete configs

8.8.4

Released August 8, 2017

  • The "shaded" artifact for docker-client additionally relocates com.google.guava:guava classes, to try to help avoid conflicts for users that depend on incompatible versions of Guava. (850)
  • Upgrade Google Guava to 20.0 (792)

8.8.3

Released August 3, 2017

  • add 'force' parameter to disconnectFromNetwork (839)
  • allow additional MemoryStats attributes to be nullable (847)
  • add missing Options property to Ipam, allow Config to be nullable (843)

8.8.2

Released July 24, 2017

  • add attachable property to Network (830)
  • allow UpdateStatus.completedAt to be nullable (834)
  • add RootFS property to inspectImage response (835)

8.8.1

Released July 13, 2017

  • Rename NoOpRegistryAuthSupplier to FixedRegistryAuthSupplier
  • Fix RegistryAuth JSON properties; RegistryAuth keys should all be lowercase
  • Add Event types: plugin, node, service, and secret (825)
  • Add Event filters: plugin and scope (825)
  • Small fixes to code and tests for docker 17.06.0 (825)

8.8.0

Released July 2, 2017

Bugfixes

  • Fix: make SwarmJoin.AdvertiseAddr nullable; RemoteAddrs and JoinToken are not (796)
  • Fix: Node.ManagerStatus when a manager is not a leader (790)
  • Add HostConfig.NanoCpus
  • Add ContainerConfig.Healthcheck.StartPeriod
  • Add Node.ManagerStatus
  • Return swarm info from DockerClient.info(), i.e. /info endpoint
  • Support updating swarm node with DockerClient.updateNode()
  • Support deleting swarm node with DockerClient.deleteNode()
  • Support returning warnings when creating a service

8.7.2

Bugfixes

  • Fix: make MemoryStat.stats nullable for ARM (784)

8.7.1

Bugfixes

  • Fix NPE in MultiRegistryAuthSupplier (783)
  • Enable http proxy support (742)

8.7.0

Released June 5, 2017

Expanded RegistryAuthSupplier support

Add RegistryAuthSuppliers for:

  • reading from docker config file (ConfigFileRegistryAuthSupplier)
  • combining multiple suppliers (MultiRegistryAuthSupplier)

Also change the default behavior of DefaultDockerClient.Builder to use the ConfigFileRegistryAuthSupplier if no other authentication options are passed to the Builder, so that out-of-the-box, any authentication info from the docker config file (at ~/.dockercfg or ~/.docker/config.json) is used.

8.6.2

Released May 31, 2017

Bugfixes

  • ContainerRegistryAuthSupplier should ignore exceptions in refreshing the Access Token unless RegistryAuth info is needed for a GCR image (773)

8.6.1

Released May 31, 2017

Added NetworkConfig.Attachable.

768 770

8.6.0

Released May 26, 2017

Revamped support for authentication

This version introduces a new way to configure DefaultDockerClient to use authentication - the RegistryAuthSupplier interface.

Historically, a single RegistryAuth instance was configured in DefaultDockerClient at construction-time and the instance would be used throughout the lifetime of the DefaultDockerClient instance. Many of the static factory methods in the RegistryAuth class would use the first auth element found in the docker client config file, and a DefaultDockerClient configured with dockerAuth(true) would have this behavior enabled by default.

Inspired by a desire to be able to integrate with pushing and pulling images to Google Container Registry (where the docker client config file contains short-lived access tokens), the previous behavior has been removed and is replaced by RegistryAuthSupplier. DefaultDockerClient will now invoke the appropriate method on the configured RegistryAuthSupplier instance before each API operation that requires authentication. This allows for use of authentication info that is dynamic and changes during the lifetime of the DefaultDockerClient instance.

The docker-client library contains an implementation of this interface that returns static RegistryAuth instances (NoOpRegistryAuthSupplier, which is configured for you if you use the old method registryAuth(RegistryAuth) in DefaultDockerClient.Builder) and an implementation for refreshing GCR access tokens with gcloud docker -a. We suggest that users implement this interface themselves if there is a need to customize the behavior.

The new class DockerConfigReader replaces the static factory methods from RegistryAuth.

The following methods are deprecated and will be removed in a future release:

  • DefaultDockerClient.Builder.registryAuth(RegistryAuth)
  • all overloads of RegistryAuth.fromDockerConfig(...)

740, 759

Upgraded dependencies

Jackson has been upgraded from 2.6.0 to 2.8.8.

8.5.0 (released May 18 2017)

Removal of deprecated methods

Previously deprecated DockerClient methods that have a RegistryAuth parameter but never used the value were removed. These methods are:

  • load(String, InputStream, RegistryAuth)
  • load(String, InputStream, RegistryAuth, ProgressHandler)
  • save(String, RegistryAuth)

Fix thread-safety issues with DefaultDockerClient's connection pool

See #446 and #744.

7.0.0

Breaking changes

Some classes have been renamed

  • AuthConfig -> RegistryAuth
  • AuthRegistryConfig -> RegistryConfigs

Some methods have been renamed

  • ContainerConfig.volumes() -> ContainerConfig.volumeNames()

Use public static factory methods instead of public constructors

These breaking changes are required since AutoValue doesn't allow public constructors.

  • HostConfig.Bind
    • new HostConfig.Bind.BuilderTo("to") -> HostConfig.Bind.BuilderTo.create("to")
    • new HostConfig.Bind.BuilderFrom("from") -> HostConfig.Bind.BuilderFrom.create("from")
  • new RemovedImage() -> RemovedImage.create()
  • new ProgressMessage() -> ProgressMessage.builder()
  • new PortBinding() -> PortBinding.of()
  • new ContainerExit() -> ContainerExit.create()

Use builders instead of public constructors

new ContainerCreation() -> ContainerCreation.builder()

Removed methods

  • no public constructor for ContainerInfo, Info, or ImageInfo anymore

Getters for AutoValue classes return Immutable collections

AutoValue recommends using the immutable type (like ImmutableSet) as the actual property type.

  • List -> ImmutableList
  • Map -> ImmutableMap
  • Set -> ImmutableSet

Builders no longer have getters

You'll need to call build() on the builder to get their attributes. AutoValue doesn't support builder getters.

Deprecations (will be removed in the future)

Methods

  • ContainerConfig.Builder.volumes("/foo") -> ContainerConfig.Builder.addVolume("/foo")
  • methods prefixed by get in the following classes lose the get
  • ContainerCreation
  • ContainerConfig
  • methods prefixed by with in the following classes lose the with
  • TaskSpec.Builder
  • PortConfig.Builder
  • EndpointSpec.Builder
  • RestartPolicy.Builder
  • ContainerSpec.Builder
  • ServiceSpec.Builder
  • NetworkAttachmentConfig.Builder
  • Service.Criteria.Builder
  • Task.Criteria.Builder
  • PortBinding.hostPort() -> PortBinding.of()

Misc

Deprecations to Ipam and IpamConfig.

Before:

final Ipam ipam = Ipam.builder()
    .driver("default")
    .config("192.168.0.0/24", "192.168.0.0/24", "192.168.0.1")
    .build();

After:

final IpamConfig ipamConfig = IpamConfig.create("192.168.0.0/24", "192.168.0.0/24", "192.168.0.1");
final Ipam ipam = Ipam.builder()
    .driver("default")
    .config(singletonList(ipamConfig))
    .build();