Mac 용 Docker 의 디스크 처리량 약 2배 향상
2018-08-0615:38 Stable Edition 부활 알림
Docker Community Edition 18.06-ce-mac70 2018-07-25를 통해 raw 형식을 다시 사용할 수 있습니다.
Re-enable raw as the the default disk format for users running macOS 10.13.4 and higher. Note this change only takes effect after a “reset to factory defaults” or “remove all data” (from the Whale menu -> Preferences -> Reset). Related to docker/for-mac#2625
Reset disk image
또는 Reset to factory defaults
는raw 형식이다.다음에는 꼭 라우 포맷을 즐겨주세요.
@jca02266 메시지 감사합니다!
2018-06-00802:01 Edge Edition 부활 알림
Docker Community Edition 18.05-0-ce-rc1-mac632018-04-26(Edge)을 통해 raw 형식을 다시 사용할 수 있습니다.
Re-enable raw as the the default disk format for users running macOS 10.13.4 and higher. Note this change only takes effect after a “reset to factory defaults” or “remove all data” (from the Whale menu -> Preferences -> Reset). Related to docker/for-mac#2625
@takecore@github 메시지 감사합니다!
2018-03-00113:35 revert 알림
버그가 있어서 Docker Community Edition 17.122.0-ce-mac55 2018-02-27(Stable)에 답장이 왔어요.
Revert the default disk format to qcow2 for users running macOS 10.13 (High Sierra). There are confirmed reports of file corruption using the raw format which uses sparse files on APFS. Note this change only takes effect after a reset to factory defaults (from the Whale menu -> Preferences -> Reset). Related to docker/for-mac#2625
이하 원고
Docker for Mac의 발매 노트를 봤어요.
For systems running APFS on SSD on High Sierra, use raw format VM disks by default. This improves disk throughput (from 320MiB/sec to 600MiB/sec in dd on a 2015 MacBook Pro) and disk space handling.
Existing disks are kept in qcow format, if you want to switch to raw format you need to “Remove all data” or “Reset to factory defaults”
Docker Community Edition 17.12.0-ce-mac46 2018-01-09 (Stable)
Docker Community Edition 17.122.0-ce-mac46 2018-01-09(Stable) 업데이트에서는 디스크 처리량이 320MiB/sec에서 600MiB/sec로 바뀐 것 같아 적용됩니다.
APFS, SSD, High Sierra에 유효합니다.
이미 적용됐기 때문에 효과를 측정할 수는 없지만 절차만 여기에 적는다.
한 번 초기화
현황 확인.
Disk image location에서 확장자는 qcow2입니다.
가상 디스크 형식을 변경하려면 Remove all data 또는 Reset to factory defaults를 한 번 수행해야 합니다.
Reset to factory defaults를 진행하면 CPU를 사용하거나 메모리 등을 사용하는 설정도 초기화돼 시행Remove all data
된다.
새로운 형식으로 가상 디스크 이미지를 만들어 보세요.
$ docker run hello-world
새 가상 디스크 이미지의 형식을 확인하십시오.$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
Digest: sha256:66ef312bbac49c39a89aa9bcc3cb4f3c9e7de3788c944158df3ee0176d32b751
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
가상 디스크 이미지의location을 확인한 후 확장자가 raw로 바뀌는지 확인하십시오.
dd 명령 시도
비록 사후에만 있지만, 나는 dd 명령으로 10GB를 쓸 때의 로그를 남길 것이다.
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
Digest: sha256:66ef312bbac49c39a89aa9bcc3cb4f3c9e7de3788c944158df3ee0176d32b751
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
$ docker run -it alpine time dd if=/dev/zero of=/test bs=262144 count=40960
40960+0 records in
40960+0 records out
real 1m 5.46s
user 0m 0.32s
sys 0m 36.67s
Reference
이 문제에 관하여(Mac 용 Docker 의 디스크 처리량 약 2배 향상), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/shinespark/items/51b6b145da4772764dfb텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)