~dricottone/my-utils

ref: b26e1a336ce318b7258b95dd238eb7d0801088e8 my-utils/containers/README.md -rw-r--r-- 1.3 KiB
b26e1a33Dominic Ricottone git-sparse 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# containers utilities

Tools for managing, scripting, and automating containers.


## Specification

All are dependent on `docker`.

Executable                |Description                                                 |Extra Dependencies
:-------------------------|:-----------------------------------------------------------|:-----------------
docker-clean              |Stop all containers, remove all images, and clear the cache |
docker-get-all            |List all Docker containers' and services' IDs               |
docker-get-all-containers |List all Docker containers' IDs                             |
docker-get-all-services   |List all Docker services' IDs                               |
docker-get-exited         |List all exited Docker containers' IDs                      |
docker-restart            |Restart all exited Docker containers                        |
docker-up                 |Start a Docker container using `./docker-compose.yml`       |`docker-compose`
swarm-test                |Check if system is a swarm manager or node                  |

*All* scripts support `-h` and `--help` for printing built-in documentation.


## To-Do

 + make the calls to `docker` interchangable with e.g. `nerdctl` (see [here](https://github.com/containerd/nerdctl))
 + gate Docker swarm functionality behind `swarm-test` and drop split scripts