017docker镜像占用太大问题
作者:互联网
一、清除镜像之前的大小
[root@xxx ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 32G 0 32G 0% /dev tmpfs tmpfs 32G 0 32G 0% /dev/shm tmpfs tmpfs 32G 7.4M 32G 1% /run tmpfs tmpfs 32G 0 32G 0% /sys/fs/cgroup /dev/vda1 ext4 197G 147G 43G 78% / tmpfs tmpfs 32G 4.0K 32G 1% /var/lib/kubelet/pods/24a7ae8d-48e5-4d2a-9215-8dee5654c6a9/volumes/kubernetes.io~secret/addon-token tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/24a7ae8d-48e5-4d2a-9215-8dee5654c6a9/volumes/kubernetes.io~secret/default-token-pss6z tmpfs tmpfs 32G 4.0K 32G 1% /var/lib/kubelet/pods/ff10d837-3081-4a81-b9c1-3ba03d1b2270/volumes/kubernetes.io~secret/addon-token tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/ff10d837-3081-4a81-b9c1-3ba03d1b2270/volumes/kubernetes.io~secret/terway-token-9fb6n tmpfs tmpfs 32G 4.0K 32G 1% /var/lib/kubelet/pods/3c9b1806-08d6-47fc-babd-2f3e354dd739/volumes/kubernetes.io~secret/addon-token tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/3c9b1806-08d6-47fc-babd-2f3e354dd739/volumes/kubernetes.io~secret/csi-admin-token-fk4v5 tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/5def273d-0f5a-4088-b6ac-bc967d130636/volumes/kubernetes.io~secret/ahas-token-pjf2p tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/f7a728d7-4c9d-4bf5-93e6-09760e14c3c3/volumes/kubernetes.io~secret/arms-prom-operator-token-tgw6x tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/2147f90d-79be-452c-b84d-88554d9999fb/volumes/kubernetes.io~secret/kube-proxy-token-pmvwf overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/17d4ad5146eded35aca7ef931b84fe48e32f29f10b480fb53f6179bde795f190/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/e36c6af46a0cc57e859b200323554b02a7ed1a4f9118dde9c05e2e7756e79221/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/b832cf7bdadf10cbff2e1247d837c9ce34500a3daa758f6074793adbab3d1e8e/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/5b4913a8d3e70009ccd547defb389916a36a4dbe934d90cb2d089fb9598d8020/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/4e168a17286306a85405346a3741a3c305a6e721d80b92223ae69c2079ea9bf1/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/609503f0c6ea6b51395f45e86204c336a6fb8bab1c6b8c619f9ec4dd4a5846ca/mounts/shm shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/7c6cf7b21b4ec50acc88ecefa08893d317c903691de641022a4f885f168ca628/mounts/shm shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/699897e0db42cbc3e88ebea57196a9f3f91af5d23961477edd99f755c1c3623a/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/57c8e7513c65f495bce723d8d7e7cae857d950aa36a2674b3e21b1dd957d2e34/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/3a8fdc1b6e5d3d9e091e6c5f11be417af5a917c6db6b744b88d6fffbd40c3a6f/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/c567bf898c8715d59c0be05d9424ac15745ba3dde4aab65017f7cec0e20f19c0/mounts/shm shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/33c74cc58b3bbada4e9ae7c231c45d76cbcc54bd01c882a8d9895da559dc2ad6/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/295d280e687a21d3d05aa5a1e9903e2464805fb221f959faef5bfefa7975e517/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/2fcd7a995a4dcbb508a5f94054d896f25523e92373f0ead79761e9ce2d4f4d71/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/14091a45368895effc1f1d0d55a868f25701d85261c17c999423578b3e27b7a5/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/1372ed78a3e6c980ac8aa46ad4259e05ed2365d8ed479c71c10077e99e324e69/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/7dffbe259505c37932aee8181b64130aac89e4bf96e706d0cc24abf8c89cbfab/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/1d9cf126898e114e6e679374e3ad564dada1555617421eadc6cd63386d336db0/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/4c04bf7043c34d3170e0cb6dabce6ed703a2cfb497dde01e39a21e513241c7e7/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/ca84569d7bc8a6d1350af57e5ed481d28114d97ae9185a365ca547509c47f195/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/66b9ba01779fa5621e1ef0c96e78e3288be76492c42c0ca1abdfcd612d3f1442/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/b3106535b85fb1edb4323602bd43c4715c6626987404d47d2cba6a659ca9183e/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/5b88010a02c45c9b15e174e1fd1fd5e74269fdd6c874c1a324e48c3a2738a611/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/cde43306-ef9e-4fe8-b00b-2f7c6f40b4e4/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/bccb6fe3350449a0c7d461af9af11e4a1d2888e42c48785b7dc8de189f8376de/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/4a20e551d223f4aa6730a64c109eafd6b5055220d36e9ebbbc6001a1491766df/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/55c36f3d8782d58ab656027834afacef3d38a9f608c094cf61a4683df7c9e59f/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/efc53a2a1779d6dd60f6459264e849e42dea38eed5389d3ecc4c230b5b6a9e66/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/1b39fb91-e1ef-4f3c-af80-1d6775b4f9cf/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/a06225305b93336421a8b56e02cbfd5675e68e2dcdb5df5b2024ad6c068c2e75/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/a28c1b8dab813a436312bf27dd2a75bb59596e33690d16a4c701c2c915d79ab1/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/b46db3f6853d148eeb801b18b7e4e7a659c4da15b587567db942c73e1e3c00b3/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/c585e385-9f65-4846-a2a2-a95a7b0938a2/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/361b34fc4891e4b8b6ee25f8ddea54ef16cb0c6fb718be95776b951a5c8b36d9/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/290a4876ac3d4e51c0c6315deab989ac968ad75a30b68cb875d981d2ac183d9b/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/70b3dd6537e6c614109a53d4c67a38a15936faabb16a35d8eb190551e23376a9/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/1b67ac7a8a3716a40911a1752dce16dac3260d865db81c1cd8995f5dd7ad2e26/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/f5941c7b-dc26-441f-8fc3-783f4825826c/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/fccecbdace905192f1805f4d9d2b55cf7e66abea2cd8ccbe65df8403dd030191/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/dfd6af6d3fdaac41292315c2bf9ee408314311ccab3faeb1d7154aa282c7d010/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/200a66c04a39454889e506ee039ce713be8d927ca79c85c176fcea1456379674/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/1bea8457f023c6f8cf7eb7829fe1907ecbd23af5a0ad9f066a1f3e8d56769b9a/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/5127c7bf-a564-4b5e-a987-652db86ed2b4/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/80ea26d537261e1d2d70423a8ce662819744f58ce264dc45216cc0f4c8855724/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/97982e498b759a1d8e43a607a06900d969edd28e5aab09adf0469f1e6f45d143/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/af9b10b1443c065e86face2952ccf9200c52e5243fd228ebbc4620813fc8597c/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/77e627afa06c4cfc24c2b1aa4946a9d80ee5b5242187b786872fd2bb472ea6dc/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/c4c284cf-27d6-44f7-9873-39b20ecb8167/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/5b3b3183bc53ff20cb5f3a73e8571f436f86dfb99cd12f4c7e6c0a5cab9ae550/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/e2e0f26cfa349b18c1b3c18d5f4430257badc9ee56973bac7f0c074093065cbb/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/dfcad05407fe637fa42a19fd116897efa1c9711b6709d51826147901726b1c67/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/7b64d9c2-be89-477c-82d2-30e9ff73372f/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/8353ce474d2e106977f89f6de60ac7943e5c46ba848064a31c2191207a1f2601/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/210ce619f7cf7d9c53fcdcca20c2f1ae6ba6efab576147f261a66a320c037fcc/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/ab9fdba0d5f1b69f3e426484c4a0b6bc483514aff8388a90b8e02aeb724a138e/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/44f28bd4a7ebad7b724a77f3a86886f7ebddcf0010ffdf4b6e9283bf4072520c/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/2861c462-50f5-41d4-a332-567e8a8f298e/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/5d4576cac75a4ef6a164f2e573c2bf74f6b9cfa8a68618531a1935404a8aea49/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/21668bbcb06dc990a7cc15d88813ee3f015a893963aa49e5157e4207f981b22f/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/6b2d7145964265cf6b1b804805b60a98eeb16ad805e53a06f90bacfcbb1b6f71/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/128d7b0d5d0113f75099c2661477b9744cf134f5bec61dfc0d915d1d6ef00504/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/b7baf90b-d6b2-4ec9-9207-e7ed5f94e2fc/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/9f0027f383f148d8b53caccccfdde85715f83352b8e9b2fbef4eb9283957ec67/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/7c2beb0b6a5be6a77f87c62de744f5bfcb4ab63912445d44f5505d8728495f09/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/3fcb0b9b2f747bcefb7d2f1830ba29c2e690f3940c23e9f237c75b6efb0fbf8a/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/2081037e3bf677f9159243f1192f10f4071a8be8f5542ea6eb041f713d0d99c1/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/268a6a54-cc60-4f13-8086-82a6521304d8/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/87af11086cbf9c600e34236bec576aec86c5a797f7260d4ea0020c64ff884135/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/b1f54309f7bce54ce57bf60faa2a3e0bec36ae1fff5c8fe2b3e1319cde89ad80/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/21f3925fab65317c7a0376a7470f4696306e4259e3c4d24c20b4791deb6667be/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/44b5cfafe5d32ea7f9d254ab4b3a3be933ec78f8894e597381d4af12f75bbe62/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/ba5be4ac-f1f5-411e-aecd-cb10b2845b2e/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/87928a12e19986ec609dccaf0a6963d72381dfa8ce2de68c0aeb808830f2c20f/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/35110bbff48613bcf80c38ee3e33a657c6516a4631cde702cdd8303fef54af6c/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/ae19078007ce0d325e1b461c59a8cc63b944cf3fadd093c2b3d33a826ba89bfe/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/b8e3ae3e0c323812aeceab228999eb9ee2886d9b6c38f0f21d860f939b5b6c3e/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/a7f89796-032d-4842-91cb-52ad031101bf/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/b192926746f87fba3741ecafde1de411deadabd007878565d6d4bbeeeed1ae2b/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/9ccc8511627b55b59e9b0ee14d45505ea43f55b7edb9a2ee88c6c7cc9bc3df2c/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/7bfb691a9f8963e2446290f8467e27deb8eafe24210a1c421be1b10bf45e57be/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/dddd05c2929120d7be5c800fe6e5d46d2b85778651a0ebb68911450bfd90b28d/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/417da1c7-fff8-43bd-ab11-f3c6a86951be/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/3f20221a179c0d18f5424af378f3efb5473573b6f38bc54bb345cd0b72f38573/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/e915c1e85e75149f7de2e4e46b4d55bd5439a771267c7bee64c76094817eada4/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/52a4ea42a1395a7674c4b46f1236b896d04c0d093b8be9984228004e2c08f70c/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/e7e85b154caa31d6c44d12efd7eeff9e415fc3a545e8d25b41c876ffdd5b5425/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/e3976588-1e65-4ffa-b4c4-1d289112b74b/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/714505f4b69e59d9da432e8a2754750da16381030ec980f300f829d90701f6d6/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/27f6737031c28528bf032542432a8f9b2686727deff901bfec98e5478511f766/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/5aa0777bfa5920bafefb5adabac4f7d0dabfdadb8c6acd51255f2e78ba2264ce/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/4ef1e153db5106f1c67ac15cf012d12a81c8b621f3e14a6c849b4ecf82260fd9/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/e2c85603-d67d-466d-a9a3-3ed24d4edd7d/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/81f5fc540ecf081301ec338fc382c90094726f0292df3c8be65f3142a4dfcbe5/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/d559cd1853b6b5d12fb428bd5441770278df853586de0475319c9aba4ab0b428/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/7c08fae13d5921bc9fc99690fd27c1f85b5ca6686cc0715cb8bd51394f02b06a/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/1273e7ab15d4fee8ed640d0a11628aa88bb3051699593622221a8c0073e5ed76/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/1b096710-86e7-4e39-943b-506b44e6b4a2/volumes/kubernetes.io~secret/default-token-w4w2p overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/aa562094b7a5e0e3eadd39aedca2a2f864a43d0156ebfb68c823f8d023570f70/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/856c32a196ecf551a4ee73a49006ba29422369716af308be616e2719343624f3/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/392761fa379757657861008d9f1e32ae4a71cce343f57a1f481a7b914d21d220/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/2d32cef7b1d3822d5326374c769834738b3cbf516be47ff78e8948588dbea27b/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/ed629d5b-9be4-4ded-8d47-9d5cf63e0fa2/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/5629126c1f2ff038b3acc9176389762e9147b4389036e822d06ef0f964a17087/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/3a895abdc53b81184123dd96ed6c2e47a7c93b4862188e086f210d30f1c3a536/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/a3961f9a9894f1119dc78e5cd614566b3372f9897cf90bea01648180f791bb2d/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/ece62b38947c6900e5362a29a1b9d925a4dc7c5d321a3427f9abd38c9f14010b/merged tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/1a501a2b-c868-4401-9001-9e7a025f5023/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/214988103df5c6a8e570ce554d1bd15f72ae9a2e6791064b58e5d6691c8f8f1a/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/c1d24fa0bad2b4fa9773f6915eb13f9610eb5ad0ffd1868ac9800151b0547d90/mounts/shm tmpfs tmpfs 32G 12K 32G 1% /var/lib/kubelet/pods/8d2599e3-a560-4e1b-9ead-935da3cd834a/volumes/kubernetes.io~secret/default-token-4wghd overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/cdd332428d78ddbcd5049fe93e51c6ad55cda36e609cb3e259c5d05c41400015/merged shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/773468d2fd53b393026dd0a375a026ab53167787fd2ce00e3e337fbcf59a858a/mounts/shm overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/0952128a62ac0919f785cef66ff5f67beff01385cc41f37b04a9bc7ef62d2f48/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/57b5dbcfd455c12b24d7a8f8cff45d1b3fb2817c4f9b23236bce6716e504df9a/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/979092610c13529338090cb9da841f2ef603db16cda454fd9d5c7b505adba926/merged overlay overlay 197G 147G 43G 78% /var/lib/docker/overlay2/1c2162ca358a4373bd3f22f6e78954fa59e4929537c7bce497af2c654284a3db/merged tmpfs tmpfs 6.3G 0 6.3G 0% /run/user/1000 [root@xxx ~]# docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 610 30 111.6GB 106.2GB (95%) Containers 75 72 1.508GB 119kB (0%) Local Volumes 36 36 619.1MB 0B (0%) Build Cache 0 0 0B 0B
二、执行镜像清除之后的大小
#-a, --all Remove all unused images not just dangling ones
镜像清除命令: docker system prune -a
[root@iZ2ze3jvsy7620mtofgshvZ ~]# docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 30 30 6.659GB 1.267GB (19%) Containers 75 72 1.516GB 313.9kB (0%) Local Volumes 38 36 623.1MB 542.3kB (0%) Build Cache 0 0 0B 0B [root@iZ2ze3jvsy7620mtofgshvZ ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 32G 0 32G 0% /dev tmpfs tmpfs 32G 0 32G 0% /dev/shm tmpfs tmpfs 32G 7.4M 32G 1% /run tmpfs tmpfs 32G 0 32G 0% /sys/fs/cgroup /dev/vda1 ext4 197G 49G 141G 26% /
Reference:
https://stackoverflow.com/questions/50659233/what-is-the-reclaimable-space-displayed-in-docker-system-df
标签:017docker,lib,overlay,占用,197G,var,镜像,docker,tmpfs 来源: https://www.cnblogs.com/itcomputer/p/15955539.html