V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tohearts
V2EX  ›  程序员

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

  •  
  •   tohearts · 2018-06-12 09:55:56 +08:00 · 2870 次点击
    这是一个创建于 2116 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [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 条回复    2018-06-12 17:57:56 +08:00
    rcmerci
        1
    rcmerci  
       2018-06-12 10:11:50 +08:00
    是不是 overlayfs,d_type 是不是 false
    ai277014717
        2
    ai277014717  
       2018-06-12 10:25:47 +08:00
    supervisord 自启动了吧
    tohearts
        3
    tohearts  
    OP
       2018-06-12 10:25:58 +08:00
    @rcmerci d_type 是? 修改哪个地方能告知么?
    tohearts
        4
    tohearts  
    OP
       2018-06-12 10:27:24 +08:00
    @ai277014717 不是 supervisord 的事, 是只要修改容器中原来的文件就会出现 *.*~ 后面带~的文件 然后 file stat 全是 '?' '?' ,读写权限也是‘?’ 还无法删除
    rcmerci
        5
    rcmerci  
       2018-06-12 13:47:22 +08:00
    用 overlay2 这个 driver 的时候,docker info 里能看 d_type,false 的话,有你说的这个问题的现象。
    rcmerci
        6
    rcmerci  
       2018-06-12 13:48:14 +08:00
    要 mkfs 的时候加上 ftype=1
    lostsquirrelX
        7
    lostsquirrelX  
       2018-06-12 17:57:56 +08:00
    为啥 要删除里面的文件,怎么删除的,好奇
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5511 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:17 · PVG 16:17 · LAX 01:17 · JFK 04:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.