You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
734 B

  1. ## For use DOCKER_BUILD_KIT
  2. Set bash env vars:
  3. ```bash
  4. export DOCKER_BUILDKIT=1
  5. export COMPOSE_DOCKER_CLI_BUILD=1
  6. ```
  7. ## Recommended aliases
  8. ```bash
  9. alias dc='docker-compose'
  10. alias dils='docker image ls | grep'
  11. alias dirm='docker image rm'
  12. ```
  13. ## Visualize docker images tree
  14. https://github.com/justone/dockviz
  15. ### Setup
  16. Add into your `~/.bash_aliases`:
  17. `alias dockviz="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz"`
  18. For use visualization with `/usr/bin/dot`
  19. `apt install graphviz`
  20. ### Containers
  21. This is not usefully, but if your externally needs...
  22. `dockviz containers -d | dot -Tpng -o ~/containers.png`
  23. ### Images
  24. Proof technology
  25. `dockviz images -d | dot -Tpng -o ~/images.png`