• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tohearts
V2EX  ›  程序员

docker 导出容器,然后再别处导入,删除里面的文件,会有问题

  •  
  •   tohearts · Jun 12, 2018 · 3539 views
    This topic created in 2889 days ago, the information mentioned may be changed or developed.

    [root@btmsys supervisor]# ls ls: cannot access supervisord.conf~: No such file or directory conf.d supervisord.conf supervisord.conf~ 每次删除文件 /目录或者修改文件 都会出现一个 supervisord.conf~

    drwxr-xr-x 2 root root 6 Jun 12 01:41 conf.d -rw-r--r-- 1 root root 9172 Jun 12 03:42 supervisord.conf ?????????? ? ? ? ? ? supervisord.conf~

    完全不知道什么问题。有没有大佬知道。

    7 replies    2018-06-12 17:57:56 +08:00
    rcmerci
        1
    rcmerci  
       Jun 12, 2018
    是不是 overlayfs,d_type 是不是 false
    ai277014717
        2
    ai277014717  
       Jun 12, 2018
    supervisord 自启动了吧
    tohearts
        3
    tohearts  
    OP
       Jun 12, 2018
    @rcmerci d_type 是? 修改哪个地方能告知么?
    tohearts
        4
    tohearts  
    OP
       Jun 12, 2018
    @ai277014717 不是 supervisord 的事, 是只要修改容器中原来的文件就会出现 *.*~ 后面带~的文件 然后 file stat 全是 '?' '?' ,读写权限也是‘?’ 还无法删除
    rcmerci
        5
    rcmerci  
       Jun 12, 2018
    用 overlay2 这个 driver 的时候,docker info 里能看 d_type,false 的话,有你说的这个问题的现象。
    rcmerci
        6
    rcmerci  
       Jun 12, 2018
    要 mkfs 的时候加上 ftype=1
    lostsquirrelX
        7
    lostsquirrelX  
       Jun 12, 2018
    为啥 要删除里面的文件,怎么删除的,好奇
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3122 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 15:02 · PVG 23:02 · LAX 08:02 · JFK 11:02
    ♥ Do have faith in what you're doing.