Skip to content
Snippets Groups Projects

usse sudo for dockerinfo check

Merged Hahn Axel (hahn) requested to merge update_check_dockercontainer_info into master
2 files
+ 11
7
Compare changes
  • Side-by-side
  • Inline

Files

@@ -5,8 +5,6 @@ Script: `check_dockercontainer_info`
List existing containers and show container details.
To show details you can enter an id or define a regex
⚠️ This script is more experimental.
## Requirements
* `docker` Docker must be installed
@@ -39,7 +37,7 @@ If DOCKER_HOST is not set then the docker socket is detected from a running dock
______________________________________________________________________
CHECK_DOCKERCONTAINER_INFO
v1.1
v1.2
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
@@ -90,8 +88,13 @@ None.
### Stats
`$ ./check_dockercontaeiner_top` returns
`$ ./check_dockercontaeiner_info -s` returns
```txt
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
31eff39f1582 php:8.4-apache "docker-php-entrypoi…" 10 days ago Exited (0) 24 hours ago mfa-server
9fa83e21142e appmonitor-appmonitor-web "docker-php-entrypoi…" 3 weeks ago Up 3 hours (healthy) 0.0.0.0:8001->80/tcp, :::8001->80/tcp appmonitor-server
7a03472377c4 phpmyadmin/phpmyadmin "/docker-entrypoint.…" 4 weeks ago Exited (0) 4 weeks ago phpmyadmin
835b49cc042c mariadb:10.5.28 "docker-entrypoint.s…" 4 weeks ago Exited (0) 4 weeks ago apost-db
TODO
```
Loading