2015年8月12日 星期三

Use loopback device in docker


"--privileged" works for me.


loopback device in a Linux container? - Server Fault
http://serverfault.com/questions/701384/loopback-device-in-a-linux-container

The quick answer
docker run --privileged=true ...
An alternative
sudo losetup /dev/loop0 test.img
mount /dev/loop0 /mnt
docker run -v /mnt:/mnt ...
linux - Is it possible to mount an ISO inside a docker container? - Stack Overflow
http://stackoverflow.com/questions/22028795/is-it-possible-to-mount-an-iso-inside-a-docker-container
To mount an ISO inside a container, you need two things:
  • access to loop devices,
  • permission to mount filesystems.
By default, Docker locks down both things; that's why you get that error message.
The easiest solution is to start the container in privileged mode (docker run -privileged ...).
A more fine-grained solution is to dive down into the devices cgroup and container capabilities to give the required permissions.
Note that you cannot execute privileged operations as part of a Dockerfile; i.e. if you need to mount that ISO in a Dockerfile, you won't be able to do it.


2015年8月10日 星期一

Sara的食食課課 |
http://blog.shishikeke.com.tw/

賴宇凡演講
https://www.youtube.com/watch?v=aDS6wXhCK8Y&feature=BFa&list=ULkPkaxt8WP5Q

科學人雜誌 - 怎樣吃最健康?
http://sa.ylib.com/MagCont.aspx?PageIdx=1&Unit=featurearticles&Cate=&id=176&year=

每天吃3顆蛋,竟可降壞膽固醇!你一定要知道的 5 個膽固醇新常識 - 非讀BOOK - 新知 - 良醫健康網 - 商業周刊(百大良醫)
http://health.businessweekly.com.tw/AArticle.aspx?id=ARTL000020471&utm_source=facebook.com&utm_medium=social&utm_content=health&utm_campaign=content



Re: [討論] 不吃澱粉?
https://www.ptt.cc/man/FITNESS/DE51/DE92/M.1344485698.A.38A.html

她倡健康飲食文 醫生斥:吐血謬論 | 即時新聞 | 20150723 | 蘋果日報
http://www.appledaily.com.tw/realtimenews/article/life/20150723/653428/

小黃醫師的隨手筆記: 快吐血的謬論,卻充斥台灣媒體
http://blog.huangrh.com/2015/07/blog-post_21.html

SARA 你知道你說的錯很大嗎?
血的90%是水?凝固得了嗎?

https://www.facebook.com/photo.php?fbid=10207644872186335&set=a.1259756060495.40582.1427463448&type=1&fref=nf

(3) 急診女醫師其實. - 只要句子寫的親切,讓一般人看得懂,好像覺得輕輕鬆鬆就可以擁有健康,就代表是正確的嗎?...
https://www.facebook.com/emergencygirl/posts/1663417513890383