è¦ç¹
- Docker for Macã使ããªããå®æçã«disk imageããæé¤ãã¦ãããã¹ã
èæ¯
Docker for Macã§éçºãã¦ããã¨ããScalaã¢ããªã§ãä¸è¨ã®ãããªã¨ã©ã¼ãåºã
java.io.IOException: No space left on device
ãã£ãã¼ï¼ãããªã«disk使ã£ã¦ãããªã¼ã¨æã£ã¦ df -h
ã³ãã³ããå©ãããã©diskã«ã¯å
¨ç¶ä½è£ããããdockerã§disk使ç¨éã®quotaã¨ãè¨å®ãã¦ãããªï¼ã¨æã£ã¦Preferencesãéãã¦æãåºããã
Docker for Macã¯ã¤ã¡ã¼ã¸ãbuildããã¨æ®ããããã¡ãã£ã¨ã¥ã¤æºã¾ã£ã¦ããã®ã§ãå®æçã«disk imageããæé¤ããå¿ è¦ãããã
( docker images prune
ã®è©±ãããªããï¼ )
Disk imageï¼
ããã§ããdisk imageã¨ã¯docker imageã®è©±ã§ã¯ãªããæåéãDocker for Macãdocker imageã管çããããã®ãã¡ã¤ã«ã®ãã¨ãdisk imageã«docker imageãããããè©°ã¾ã£ã¦ãæãã
Preferencesã®Diskã¿ãã§Usageã確èªã§ãããèªåã®ç°å¢ã®å ´å64GBå²å½ã§62.5GB使ç¨ä¸ = 使ç¨ç97%ããã£ã±ãããã ããããã
lsçã®ã³ãã³ãã§ãdisk imageãã¡ã¤ã«ã®åå¨ã確èªåºæ¥ããå²å½ãµã¤ãºåãæåã«ã¬ããã¨ç¢ºä¿ããã¹ã¿ã¤ã«ãããã®ã§ãå®éã«ä½ï¼ ããã使ã£ã¦ãããã¯ä¸è¨ã®ç»é¢ã§ç¢ºèªãã¹ãã
$ ls -alh /Users/pinkumohikan/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw -rw-r--r-- 1 pinkumohikan staff 60G 8 23 01:17 /Users/pinkumohikan/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw
ä½è«: æã¯qcow2ã£ã¦ãããã©ã¼ãããã ã£ããã©ãæè¿ã¯rawãããã
Qcow2 or Raw?
Starting with High Sierra with Apple Filesystem (APFS) enabled, Docker uses disk images in the ârawâ format (Docker.raw), otherwise in the Qcow2 format (Docker.qcow2).
対å¦æ³ã¯disk imageã®ãªã»ãã
Preferencesã®Resetã¿ãã«ããã Reset disk image
ã£ã¦ãã¤ã
ãããå®è¡ããã¨docker imagesãã¾ãã£ã¨æ¶ããã®ã§æ¬¡ã«docker runãbuildããã¨ãã«base imageã®pullããå§ã¾ããåºå çã®ã¤ã³ã¿ã¼ããããå¼±ãå ´æããæ¥ãã§ã³ã³ãããç«ã¡ä¸ããå¿ è¦ãããã¨ãã«ã¯ãããªãã»ããè¯ãã
ããããã£ã±ã
$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES $ docker images -a REPOSITORY TAG IMAGE ID CREATED SIZE
å°å³ãªãã©ããã§ããã