This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for container in $(docker ps --format '{{.Names}}'); do | |
| logpath=$(docker inspect --format='{{.LogPath}}' $container) | |
| if [ -f "$logpath" ]; then | |
| size=$(du -h "$logpath" | cut -f1) | |
| printf "%-30s %s\n" "$container" "$size" | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Renkli çıktı için | |
| GREEN='\033[0;32m' | |
| NC='\033[0m' # No Color | |
| # Sistem sürümünü kontrol et | |
| UBUNTU_VERSION=$(lsb_release -r | awk '{print $2}') | |
| echo -e "${GREEN}🚀 Docker ve Docker Compose kurulumu başlıyor...${NC}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ||readbakery.com^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'mydb' AND ENGINE = 'InnoDB'; | |