V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
oglop
V2EX  ›  问与答

请问 docker save 为何出现 could not verify layer data 的错误提示,从而无法备份?

  •  
  •   oglop · 2017-08-07 05:57:46 +08:00 · 2485 次点击
    这是一个创建于 2444 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我 pull 了这个 quay.io/travisci/travis-ruby, 装了点东西然后 commit 了一下, 为何 save 的时候提示

    $ sudo docker save -o tt.tar.gz tt:latest
    Error response from daemon: could not verify layer data for: sha256:xxxxx. This may be because internal files in the layer store were modified. Re-pulling or rebuilding this image may resolve the issue
    

    问了下 stackoverflow 还没答案 https://stackoverflow.com/questions/45535790/how-do-i-use-docker-save-to-backup-a-local-image-to-file/

    4 条回复    2017-08-07 06:26:42 +08:00
    zoues
        1
    zoues  
       2017-08-07 06:16:29 +08:00 via iPhone
    要先 commit 再 save
    oglop
        2
    oglop  
    OP
       2017-08-07 06:18:16 +08:00
    @zoues 我 commit 过了
    oglop
        3
    oglop  
    OP
       2017-08-07 06:19:46 +08:00
    zoues
        4
    zoues  
       2017-08-07 06:26:42 +08:00 via iPhone
    @oglop ...刚起 没看清
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3791 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:30 · PVG 12:30 · LAX 21:30 · JFK 00:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.