Skip to content
This repository was 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