IIP-Sogang / IIP_Docker

도커 메뉴얼
0 stars 1 forks source link

AIC2020 MAX 10GB #10

Open kooBH opened 3 years ago

kooBH commented 3 years ago
rm libQt*
rm libcu*
rm libopencv*
rm libmwdiagram

Docker Image의 구조가 layer를 쌓는거라 삭제한것이 기록만 남고 실제로 용량을 줄이지 않는다.

https://github.com/jwilder/docker-squash

kooBH commented 3 years ago

http://raccoonyy.github.io/whats-new-in-docker-1-13-korean/

https://thenewstack.io/how-to-enable-docker-experimental-features-and-encrypt-your-login-credentials/

(base) ➜  AIC2020 git:(master) ✗ ./build.sh
Sending build context to Docker daemon  3.133GB
Step 1/1 : FROM aic2020:v1
 ---> 62b456169d49
error squashing image: error getting tar stream to parent: layer ID 'sha256:28770782767c213009c07c441bf7c213683ffd85d522314379d596b3c0dbe7ad' is not a parent of the specified layer: cannot provide diff to non-parent
(base) ➜  AIC2020 git:(master) ✗ 

fail

kooBH commented 3 years ago

https://pypi.org/project/docker-squash/

working.

11414.32MB -> 10222.52MB

rm libmwimages*
rm libg2o_*

5.2G =>10.2GB

rm libmwsl_*

4.9G

toolbox가 mcr/toolbox랑 toolbox가 둘 다 있네, 섞어서 했었다.