An open API service indexing awesome lists of open source software.

https://github.com/cicciog/jdockercontroller

Executes docker commands shell
https://github.com/cicciog/jdockercontroller

controller docker docker-commands docker-image dockerfile java

Last synced: 7 months ago
JSON representation

Executes docker commands shell

Awesome Lists containing this project

README

          

# JDockerController :ocean: :whale: :coffee:
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
```

com.opencsv
opencsv
4.6

```
## 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 :whale: :octopus:.