root@vps293553:/var/lib/docker/overlay2# du -hs /var/lib/docker/*
20K /var/lib/docker/builder
72K /var/lib/docker/buildkit
2.6M /var/lib/docker/containers
9.9M /var/lib/docker/image
108K /var/lib/docker/network
8.8G /var/lib/docker/overlay2
20K /var/lib/docker/plugins
4.0K /var/lib/docker/runtimes
4.0K /var/lib/docker/swarm
4.0K /var/lib/docker/tmp
4.0K /var/lib/docker/trust
788M /var/lib/docker/volumes
root@vps293553:~/docker-compose# du -hs /var/lib/docker/*
20K /var/lib/docker/builder
72K /var/lib/docker/buildkit
2.5M /var/lib/docker/containers
9.9M /var/lib/docker/image
108K /var/lib/docker/network
33G /var/lib/docker/overlay2
20K /var/lib/docker/plugins
4.0K /var/lib/docker/runtimes
4.0K /var/lib/docker/swarm
4.0K /var/lib/docker/tmp
4.0K /var/lib/docker/trust
788M /var/lib/docker/volumes
25G /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8
72K /var/lib/docker/overlay2/39d287c79a2869d3828416426df83ad167da5da1001afcd09cddd942584b9a81
7.4M /var/lib/docker/overlay2/3ac2a9fbb78d3bd3cf1af3816832d4ddc689f65e355c96bd16bfa6a1aacbf6c8
48K /var/lib/docker/overlay2/3c163d3ba9cd225634cbb6e45007ef08cf1c128c5ac8514dc7cb3459b9c145de
132M /var/lib/docker/overlay2/3dec3284f0d67260fd936c6cafb056dbc437d26708d07bb31677aa65484522aa
28K /var/lib/docker/overlay2/3e127291da4c6eaefe35ab804fe355a8fe0310d57014fd2e0df3810eb9bca135
2.4M /var/lib/docker/overlay2/41961e23410e6ca39b64ea3b010af133a5bd1283758e24e955d7cab104fa2619
32K /var/lib/docker/overlay2/4430c088013ff53ea0e7bab365e1fdddffc5a5e6c0361ef0d6bb7bd5cf8bbc66
76M /var/lib/docker/overlay2/44bb9ab2ccc1eb86dede93a832aa9a977bf76cc2e6abbb4076dd434aaf5b3cbc
44K /var/lib/docker/overlay2/4548a0ba91ef9ac8dfea07eb3ae7fc319328e01a6cf6ac6d10f889335cac9aeb
312K /var/lib/docker/overlay2/48c0a3b0978bedf9096cfda306c7b38b99ab401029985d8c55e94b393877cb0e
28K /var/lib/docker/overlay2/4968a20f884b0ff3adcd5208ea3efd6a6ca5083c64b6025b9cc4c4a43a195ec8
7.2M /var/lib/docker/overlay2/498a28a6e7b4f49445e4f45abcb184e0409c9880eebc1b5ad45de35dd8a4a442
7.0M /var/lib/docker/overlay2/49a3663dd3ebdc774060c727d6247916a0ab82461517572a61c43bb584c0cf7a
187M /var/lib/docker/overlay2/49b5c8ff0f07016e921211aa6079ae3e533100a2b4552ac4a662d814aa6c55f4
32K /var/lib/docker/overlay2/4b098f55a07ef43bf58a0008966ad8c7a904faa17172e897688836350b69d806
20K /var/lib/docker/overlay2/4c06972cbeed1f95747003e0d63b5d479da0b6fd8c5d5b759ff6aa3d60fcb16a
384K /var/lib/docker/overlay2/4e6b90b8e66fd804f1e4a11c092ff5bc20402374a33643b0646c318722d0331c
106M /var/lib/docker/overlay2/513ab2fc88e86759e94c1f0453db4aac23ac5593771ce571cd45d322939eed59
40K /var/lib/docker/overlay2/513ab2fc88e86759e94c1f0453db4aac23ac5593771ce571cd45d322939eed59-init
89M /var/lib/docker/overlay2/51be3684581d1311caae0159fa1896e7a6c54e8d92c0a636cc4058e27521517b
40K /var/lib/docker/overlay2/51be3684581d1311caae0159fa1896e7a6c54e8d92c0a636cc4058e27521517b-init
12M /var/lib/docker/overlay2/54dc74945589471d9e20b5a7ab6b93df9e2d02a945ac996ef32425cd129fa7c3
60M /var/lib/docker/overlay2/55d88604784261bbb9bf36c4a163e017bd57cf47faaac772869959582a058483
36K /var/lib/docker/overlay2/5701e91180dac3369fdf1a56d6b21fb09838bf04fa0045671879a4d3122dc65c
1.4M /var/lib/docker/overlay2/58486ca59c8147aba46f5803c6553b0d3726eea1f4d085232f0ce4de48783036
60K /var/lib/docker/overlay2/5880328e06471dc3927e26dcbde16948a4f49464cc988b07a47aa84e7942974f
132K /var/lib/docker/overlay2/599f200ee1835544b98ea4583d9b97b5f00fc776a27915fd3f1aa08c4c66f5df
643M /var/lib/docker/overlay2/59e8b49c9084813fa66580bca45f7a9faf30f95d2577f3644cd1f179824b9260
716M /var/lib/docker/overlay2/5a6daf018169c89f86f14f195d6ec9845f399a7cd0240f273062258bfac4420d
4.2M /var/lib/docker/overlay2/5aa15b3dbb67304bebc38ebf45e7c6d9fc520668e62b0ae5c101a349082c1430
40K /var/lib/docker/overlay2/5b027ef48d8494ccd6eef7e2fe9c13ae6706d7e6629eb4d9e00134dc4d0bb982
9.7M /var/lib/docker/overlay2/5c498ec24d5c8c9c168e81040aff303abc9968ba5a5eb069603f8a573cb1fbe6
56K /var/lib/docker/overlay2/5c5124d4bab278a61bc51bee8b4434e3ac9e0d8af81ca49f9e90b7206840973d
187M /var/lib/docker/overlay2/5d003c3bdcb8a15076420af706abd82aae93530e2db91afc4697b0b82935428a
48K /var/lib/docker/overlay2/5d003c3bdcb8a15076420af706abd82aae93530e2db91afc4697b0b82935428a-init
48K /var/lib/docker/overlay2/5dd124cc7172e87be63ac7b713ff7ff3d8d81de4e6357f39ebb8f956882d3084
54M /var/lib/docker/overlay2/610e1756acdfa7f435ee6487fd73377a8c41d13dc52d101632f038d56f4a2af3
56K /var/lib/docker/overlay2/63f5b7e3b6723a46e6f1cb8cbd95fc42713bb569feab83653579b606408756fc
28K /var/lib/docker/overlay2/6b96078c22b2fb295cdcb9c41b2a222d217d791b7fdf0200039e7035e83b5636
32K /var/lib/docker/overlay2/6bdda2b443ef34997bcf1d78aaeaf4554f59f79ecef1ba81718ffd0769f8a025
16M /var/lib/docker/overlay2/70a2513e822e17526ab7786f0eeda2760f3066daa4c8daed89a717f4367cf63b
40K /var/lib/docker/overlay2/70a2513e822e17526ab7786f0eeda2760f3066daa4c8daed89a717f4367cf63b-init
32K /var/lib/docker/overlay2/71dbe62abceacf930adaca3597fbd8cd8dd1130c0ec38e352951f4f6d4d77d6b
24K /var/lib/docker/overlay2/7d7abd006918463b091439a3a05ce8c8a98c8d92df858ea79f82cc80d5f67a8b
7.0M /var/lib/docker/overlay2/7e6ea8aaf64ba6a72a76b558a6380eebbdff49829ea638fbef0be7ded7683434
136M /var/lib/docker/overlay2/7f1e8551850a0bcd91f7ad089ea7855952629b4a711b4267b9e3c1f9f657adb1
1.1G /var/lib/docker/overlay2/86d3899327d965a175ed85479b4a6852be4b62fe030fd270c4c414a595870aae
root@vps293553:/var/lib/docker/overlay2# du -hs /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/*
12G /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/diff
4.0K /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/link
4.0K /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/lower
13G /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/merged
8.0K /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/work
du -hs /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/diff/*
вот этот большой каталог:
12G /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/diff/tmp
du -hs /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/merged/*
вот этот:
12G /var/lib/docker/overlay2/372b09cc1d8b8222bfaf892a72f557d05372ec873344b918a768b50f1805eab8/merged/tmp
root@vps:~# docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
root@vps:~# docker image prune
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
root@vps:~#
version: '2'
services:
web:
image: gitea/gitea:1.12.4
volumes:
- ./data:/data
ports:
- "3000:3000"
- "22:22"
depends_on:
- db
restart: always
db:
image: mariadb:10
restart: always
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=changeme
volumes:
- ./db/:/var/lib/mysql
version: "3.0"
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: always
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=db:3306
- DB_NAME=gitea
- DB_USER=tester
- DB_PASSWD=superpassword
restart: always
networks:
- main_network
volumes:
- data_gitea:/data
- timezone_gitea:/etc/timezone:ro
- localtime_gitea:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
depends_on:
- db
db:
image: mysql:5.7
container_name: gitea_mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=testertester78
- MYSQL_USER=admin
- MYSQL_PASSWORD=superpassword
- MYSQL_DATABASE=nextcloud
networks:
- main_network
volumes:
- mysql_gitea:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
depends_on:
db:
condition: service_healthy
adminer:
image: adminer:latest
container_name: adminer
restart: always
networks:
- main_network
ports:
- "3128:8080"
depends_on:
- db
nextcloud:
image: nextcloud:latest
container_name: nextcloud
restart: always
networks:
- main_network
depends_on:
- db
ports:
- "80:80"
volumes:
- nextcloud:/var/www/html
volumes:
data_gitea:
timezone_gitea:
localtime_gitea:
mysql_gitea:
nextcloud:
networks:
main_network:
import pickle
import selenium.webdriver
driver = selenium.webdriver.Firefox()
driver.get("http://www.google.com")
pickle.dump( driver.get_cookies() , open("cookies.pkl","wb"))
import pickle
import selenium.webdriver
driver = selenium.webdriver.Firefox()
driver.get("http://www.google.com")
cookies = pickle.load(open("cookies.pkl", "rb"))
for cookie in cookies:
driver.add_cookie(cookie)