Docker container, images, networks management is easy with the prune
command which is available for all types of Docker artifacts (see https://stackoverflow.com/a/32723127/4964553 & https://docs.docker.com/config/pruning/#prune-images & https://docs.docker.com/engine/reference/commandline/system_prune/#filtering).
docker container prune --filter "until=48h"
docker image prune -a --filter "until=2020-10-25"
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.5 bash -c "bundle install; bundle exec jekyll build -d public; ls -l"
errors like
$ su root
su: must be suid to work properly
simply use --user root while doing docker exec -it:
docker exec -it --user containerId bash
# optinally add proxy
export HTTP_PROXY=http://proxy.your.lan:8080
export HTTPS_PROXY=http://proxy.your.lan:8080
apk update
apk add openssh
docker run -it --rm
--volume $(pwd):/build
--workdir /build
use_some_image bash
[](https://hub.docker.com/r/aveltens/docker-testinfra)