Skip to content

cicciog/JDockerController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JDockerController 🌊 🐳 ☕

A simple program that executes commands Shell (i.e. .sh or .bat) in java for run docker commands and outputs the console results.

Check docker version

Show the Docker version information

> docker version

Docker containers available on this host

List all containers

> docker ps

Docker images available on this host

List all images

> docker images

Remove all docker containers

Remove one or more containers

> docker rm $(docker ps -a -q)

Remove all docker images

Remove one or more images

> docker rmi $(docker images -q)

Remove all docker images and docker containers

Remove all images and containers (forceability)

> docker rmi $(docker images -q) --force

Build docker image

Build an image from a Dockerfile

> docker build -t name:v1.0 .Dockerfile

View more

You can find the complete list commandline following this reference: https://docs.docker.com/engine/reference/commandline/docker/

Import maven dependency OpenCSV

<dependency>
    <groupId>com.opencsv</groupId>
     <artifactId>opencsv</artifactId>
    <version>4.6</version>
</dependency>

Cloning git repositories

This project involve a git cloner, which read a list of Github :octocat: repository and fetch automatically them in pipeline using a Jgit java library imported with maven in the dependencies of pom.xml file. Each repository contains a docker image with its dockerfile 🐳 🐙.

Releases

No releases published

Packages

No packages published

Languages