• diff

    diff

    • 用法
    1. Usage: docker diff [OPTIONS] CONTAINER
    2. Inspect changes on a container's filesystem
    3. --help=false Print usage
    • 例子
    1. $ sudo docker diff b448f729a0b0
    2. C /run
    3. A /run/secrets
    • 总结

    diff会列出3种容器内文件状态变化(A - Add, D - Delete, C - Change )的列表清单。构建Image的过程中需要的调试指令。