Use -q options for docker or docker inspect
robertu94 opened this issue · 4 comments
robertu94 commented
The output of the docker command are not designed to be scriptable/machine readable. Using the -q option or docker inspect will be less likely to encounter weird errors.
nbulischeck commented
+1 for docker inspect
. Didn't know that was a thing. Looks really neat.
The only problem with -q comes with removing containers that aren't ctf related which I heavily want to avoid.
robertu94 commented
if you pair -q with --filter, you should be able to reliably filter by name or other features.
nbulischeck commented
@robertu94 Does that commit suffice?
robertu94 commented
LGTM