Docker-CE 檔案損毀 - Linux

By Jacob
at 2017-05-09T16:48
at 2017-05-09T16:48
Table of Contents
之前使用都沒注意到, 是最近在跑個 nodejs 的專案才發現,
怎麼 export 的 image 在執行會壞掉
環境: Google Cloud Compute Engine
OS CentOS 7 w/ 100G SSD
安裝方式:
依照官網建議, 抓取 repo 檔後使用 yum 安裝
https://store.docker.com/editions/community/ \
docker-ce-server-centos?tab=description
yum -y install docker-ce
service docker restart
安裝完後, 建立 centos:6.8 container 然後 commit 再執行新的 image
docker run -it --name test centos:6.8 /bin/bash
[root@blabla /]# touch /root/1 ; exit
docker commit -m "test1" -a "tester" test test-image
docker run -it --name test2 test-image:latest /bin/bash
[root@blabla2 /]# rm /root/1
[root@blabla2 /]# ls /root
ls: cannot access /root/1: No such file or directory
1 other-files...
^^^^^^^^^^^^^^^^^^ 這邊的 1 就是個壞掉的檔案, 看得到但是不存在
手動操作無所謂, 但是有些套件會判斷錯誤
google docker filesystem broken 之類的字串並沒有看到有人有相同的問題
請問有高手知道這問題在哪嗎?謝謝。
ps. epel 7 內的 docker 沒有相同問題
--
怎麼 export 的 image 在執行會壞掉
環境: Google Cloud Compute Engine
OS CentOS 7 w/ 100G SSD
安裝方式:
依照官網建議, 抓取 repo 檔後使用 yum 安裝
https://store.docker.com/editions/community/ \
docker-ce-server-centos?tab=description
yum -y install docker-ce
service docker restart
安裝完後, 建立 centos:6.8 container 然後 commit 再執行新的 image
docker run -it --name test centos:6.8 /bin/bash
[root@blabla /]# touch /root/1 ; exit
docker commit -m "test1" -a "tester" test test-image
docker run -it --name test2 test-image:latest /bin/bash
[root@blabla2 /]# rm /root/1
[root@blabla2 /]# ls /root
ls: cannot access /root/1: No such file or directory
1 other-files...
^^^^^^^^^^^^^^^^^^ 這邊的 1 就是個壞掉的檔案, 看得到但是不存在
手動操作無所謂, 但是有些套件會判斷錯誤
google docker filesystem broken 之類的字串並沒有看到有人有相同的問題
請問有高手知道這問題在哪嗎?謝謝。
ps. epel 7 內的 docker 沒有相同問題
--
Tags:
Linux
All Comments

By Kristin
at 2017-05-11T04:19
at 2017-05-11T04:19

By Mary
at 2017-05-11T17:20
at 2017-05-11T17:20

By James
at 2017-05-14T06:30
at 2017-05-14T06:30

By Oscar
at 2017-05-19T06:06
at 2017-05-19T06:06

By Rachel
at 2017-05-19T12:19
at 2017-05-19T12:19
Related Posts
今年報稅有解法嗎?

By Wallis
at 2017-05-05T23:16
at 2017-05-05T23:16
jailkit設定locale

By Skylar Davis
at 2017-05-05T17:38
at 2017-05-05T17:38
Raspberry Pi3要用什麼寫圖形化程式?

By Hedwig
at 2017-05-05T16:53
at 2017-05-05T16:53
jailkit設定locale

By Annie
at 2017-05-05T14:01
at 2017-05-05T14:01
ssh 登入後卡死

By Zora
at 2017-05-05T11:34
at 2017-05-05T11:34