Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
/ SPDocker Public archive

Simple Docker API is a library that allows you to manage a docker host through code in a simple and efficient way. The best SDK for Docker in Java is here ! Manage your Docker instance by sending HTTP requests to DockerEngineAPI.

Notifications You must be signed in to change notification settings

bastien-snk/SPDocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐋 SPDocker (Simple Docker API)

logo
Simple Docker API is a library that allows you to manage a docker host through code in a simple and efficient way. The best SDK for Docker in Java is here ! Manage your Docker instance by sending HTTP requests to DockerEngineAPI.

🏷️ Features

  • 📦 Complete container Management
  • 🕸️ Complete network management
  • 🗃️ Cluster Management
  • 📊 JSON Data support

📂 Installation

Maven

https://github.com/rootxls/SPDocker/packages/1474189

<dependency>
    <groupId>dev.fls</groupId>
    <artifactId>spdocker</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

📐 Usage

🔒 Register SPDocker

First you will need to connect to docker by creating a new session:

Docker docker = new Docker.Builder()
        .withHost("http://localhost:2375")
        .withVersion("1.41")
        .build();

🏗️ Use modules

Once your docker host is created, you will be able to access the modules using it:

docker.containers(); // The container manager
docker.containers().list(); // Example usage: List all containers
        
docker.networks(); // The network manager

🎉 There you go, now you manage every single docker modules.

About

Simple Docker API is a library that allows you to manage a docker host through code in a simple and efficient way. The best SDK for Docker in Java is here ! Manage your Docker instance by sending HTTP requests to DockerEngineAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages