====== Docker ====== * [[https://github.com/docbill/docker-scripts/blob/master/docker-rebase|Image rebase]] * [[https://success.docker.com/article/troubleshooting-container-networking|Troubleshooting Container Networking]] * https://composerize.com/ ===== Docker as a non-root user ===== If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod -aG docker your-user Remember that you will have to log out and back in for this to take effect! ===== stats sortieren ===== * [[https://stackoverflow.com/a/43932310/6297|Sort by memory usage in docker stats]] docker stats --no-stream --format "table {{.Name}}\t{{.MemPerc}}\t{{.MemUsage}}\t{{.Container}}" | sort -k 2 -r ===== Müll entfernen ===== * https://github.com/docker/distribution/blob/master/docs/deploying.md docker image prune docker volume prune docker images docker rmi -f $(docker images -q -a ) ===== Healtcheck ===== * https://docs.docker.com/engine/reference/builder/#healthcheck HEALTHCHECK CMD curl --fail http://localhost || exit 1 ===== Network stopped working ===== * [[https://stackoverflow.com/questions/28923743/dockers-docker0-device-dies-repeatedly-inet-addr-disappears/39448733#39448733|Docker's `docker0` device dies repeatedly (`inet addr` disappears)]]