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
- Host: GitHub
- URL: https://github.com/cicciog/jdockercontroller
- Owner: cicciog
- Created: 2020-04-07T16:47:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T23:57:50.000Z (over 2 years ago)
- Last Synced: 2025-01-30T16:59:06.055Z (9 months ago)
- Topics: controller, docker, docker-commands, docker-image, dockerfile, java
- Language: Java
- Homepage:
- Size: 3.04 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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:.