mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
21 lines
347 B
Bash
Executable File
21 lines
347 B
Bash
Executable File
#!/bin/sh
|
|
|
|
inspect() {
|
|
# default to app, allow overriding by $1
|
|
SERVICE=${1:-app}
|
|
echo "Running docker-compose logs for service [$SERVICE]..."
|
|
docker compose logs $SERVICE -f --no-log-prefix
|
|
}
|
|
|
|
list() {
|
|
docker ps -a | grep 'quest-' | awk '{print $1}'
|
|
}
|
|
|
|
clean() {
|
|
containers=$(list)
|
|
echo $containers
|
|
|
|
docker rm -f $containers
|
|
}
|
|
|
|
$@ |