M README.md => README.md +9 -7
@@ 51,13 51,15 @@ qemu-test |Check if hardware and OS are capable of virtualization |
The following all depend 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' 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`
+Executable |Description |Extra Dependencies
+:-------------------------|:-----------------------------------------------------------|:-----------------
+docker-clean |Stop all containers, remove all images, and clear the cache |
+docker-get-all |List all Docker containers' IDs |
+docker-get-all-containers |List all Docker containers' (without service tasks) 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`
## Pulseaudio Scripts
A src/docker-get-all-containers => src/docker-get-all-containers +17 -0
@@ 0,0 1,17 @@
+#!/bin/sh
+
+name="docker-get-all-containers"
+version="1.0"
+help_message=$(/usr/bin/cat <<-EOF
+ List all Docker containers' (without service tasks) IDs
+ Usage: docker-get-all-containers
+ Options:
+ -h, --help print this message and exit
+ -v, --version print version number and exit
+EOF
+)
+
+. /usr/local/lib/myminiparse.sh
+
+docker ps --format "{{.ID}}" --filter "is-task=false" --all
+
A src/docker-get-all-services => src/docker-get-all-services +17 -0
@@ 0,0 1,17 @@
+#!/bin/sh
+
+name="docker-get-all-services"
+version="1.0"
+help_message=$(/usr/bin/cat <<-EOF
+ List all Docker services' IDs
+ Usage: docker-get-all-services
+ Options:
+ -h, --help print this message and exit
+ -v, --version print version number and exit
+EOF
+)
+
+. /usr/local/lib/myminiparse.sh
+
+docker service ls --format "{{.ID}}"
+
M src/docker-get-exited => src/docker-get-exited +2 -2
@@ 1,7 1,7 @@
#!/bin/sh
name="docker-get-exited"
-version="1.0"
+version="1.1"
help_message=$(/usr/bin/cat <<-EOF
List all exited Docker containers' IDs
Usage: docker-get-exited
@@ 13,5 13,5 @@ EOF
. /usr/local/lib/myminiparse.sh
-docker ps --format "{{.ID}}" --filter exited=1 --all
+docker ps --format "{{.ID}}" --filter "exited=1" --filter "is-task=false" --all