Java Docker API Client. To start using docker-java , you need to add at least two dependencies. You will need an instance of DockerClientConfig to tell the library how to access Docker, which credentials to use to pull from Docker registries, etc. The builder is available and allows you to configure every property of the client. Should you need to customize the Jackson's ObjectMapper used by docker-java, you can create your own DockerClientConfig. Once you decided which transport to use, you will need to instantiate an HTTP client. Once you have an HTTP client, you can make raw requests to the Docker daemon directly. To get an instance of DockerClient, you need to pass both DockerClientConfig and DockerHttpClient.
Features
- The builder is available and allows you to configure every property of the client
- You can tune registry auth, DOCKER_HOST and other options
- There are a couple of configuration items, all of which have sensible defaults
- There are three ways to configure, in descending order of precedence
- Customize the Jackson's ObjectMapper used by docker-java
License
Apache License V2.0Follow docker-java
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of docker-java!