Last active
August 1, 2020 11:28
-
-
Save denielchiang/3d6eec229a7a782179cc100af3879c2f to your computer and use it in GitHub Desktop.
docker storage test
This file contains 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
~/Develops/elixir/batli on master ⇡1 df -h ✔ | |
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
/dev/disk2s5 957Gi 10Gi 299Gi 4% 488607 10034143193 0% / | |
devfs 194Ki 194Ki 0Bi 100% 670 0 100% /dev | |
/dev/disk2s1 957Gi 630Gi 299Gi 68% 2480872 10032150928 0% /System/Volumes/Data | |
/dev/disk2s4 957Gi 12Gi 299Gi 4% 13 10034631787 0% /private/var/vm | |
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home | |
~/Develops/elixir/dockerize on 4_deploy_dig…_with_docker docker build -t dockerize:0.1.1 . ✔ | |
Sending build context to Docker daemon 42.78MB | |
Step 1/29 : FROM elixir:1.10.3-alpine as build | |
1.10.3-alpine: Pulling from library/elixir | |
... | |
... | |
~/Dev/e/dockerize on 4_deploy_dig…_with_docker df -h ✔ took 2m 37s | |
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
/dev/disk2s5 957Gi 10Gi 297Gi 4% 488607 10034143193 0% / | |
devfs 194Ki 194Ki 0Bi 100% 670 0 100% /dev | |
/dev/disk2s1 957Gi 631Gi 297Gi 68% 2481075 10032150725 0% /System/Volumes/Data | |
/dev/disk2s4 957Gi 13Gi 297Gi 5% 14 10034631786 0% /private/var/vm | |
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home | |
~/Develops/elixir/dockerize on 4_deploy_dig…_with_docker docker run --name postgres \ ✔ | |
-e POSTGRES_PASSWORD=postgres \ | |
-p 5432:5432 -d --rm postgres | |
Unable to find image 'postgres:latest' locally | |
latest: Pulling from library/postgres | |
6ec8c9369e08: Pull complete | |
00ae2204e425: Pull complete | |
5cd41d2c6d66: Pull complete | |
da0d72207e49: Pull complete | |
842ab77320bc: Pull complete | |
d3aa4a684de7: Pull complete | |
9edd6cfec191: Pull complete | |
f94138ea6847: Pull complete | |
884a7306eefc: Pull complete | |
7231831aa37f: Pull complete | |
fb080a4d48f1: Pull complete | |
4d7383b60165: Pull complete | |
4a77fea73307: Pull complete | |
6009276092a9: Pull complete | |
Digest: sha256:6a250876f8dec6fcf1f3ce255da7c02cb74c48bab023e073fd4f3125d496a275 | |
Status: Downloaded newer image for postgres:latest | |
b18a7b8d8ae81abe71f078e3ebb2df8036191c0b9d51edc65be6bacd91cf2ee3 | |
~/Dev/e/dockerize on 4_deploy_dig…_with_docker docker system df ✔ took 38s | |
TYPE TOTAL ACTIVE SIZE RECLAIMABLE | |
Images 5 1 830.5MB 517.5MB (62%) | |
Containers 1 1 63B 0B (0%) | |
Local Volumes 2 1 83.23MB 41.8MB (50%) | |
Build Cache 0 0 0B 0B | |
~/Dev/e/dockerize on 4_deploy_dig…_with_docker docker system prune -a 1 ✘ took 33s | |
WARNING! This will remove: | |
- all stopped containers | |
- all networks not used by at least one container | |
- all images without at least one container associated to them | |
- all build cache | |
Are you sure you want to continue? [y/N] y | |
... | |
... | |
... | |
~/Dev/e/dockerize on 4_deploy_dig…_with_docker df -h ✔ took 4s | |
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
/dev/disk2s5 957Gi 10Gi 296Gi 4% 488607 10034143193 0% / | |
devfs 194Ki 194Ki 0Bi 100% 670 0 100% /dev | |
/dev/disk2s1 957Gi 632Gi 296Gi 69% 2481258 10032150542 0% /System/Volumes/Data | |
/dev/disk2s4 957Gi 14Gi 296Gi 5% 15 10034631785 0% /private/var/vm | |
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home | |
After reboot | |
~/Develops/elixir/dockerize on 4_deploy_dig…_with_docker df -h ✔ | |
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
/dev/disk2s5 957Gi 10Gi 318Gi 4% 488607 10034143193 0% / | |
devfs 195Ki 195Ki 0Bi 100% 674 0 100% /dev | |
/dev/disk2s1 957Gi 621Gi 318Gi 67% 2441301 10032190499 0% /System/Volumes/Data | |
/dev/disk2s4 957Gi 3.0Gi 318Gi 1% 3 10034631797 0% /private/var/vm | |
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment