Docker diff命令具有什么功能呢?
下文笔者讲述Docker中diff命令的功能简介说明,如下所示
docker diff功能: 用于展示docker容器内部中的文件结构
docker diff命令语法
docker diff [OPTIONS] CONTAINER例:docker diff命令查看容器内部文件结构的示例分享
[root@node0 tmp]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 837fb73b74e6 0e901e68141f "/docker-entrypoin..." 11 days ago Up 11 days 80/tcp unruffled_ colden[root@node0 tmp]# docker diff 837 C /etc C /etc/nginx C /etc/nginx/conf.d C /etc/nginx/conf.d/default.conf C /run A /run/nginx.pid D /run/secrets C /var C /var/cache C /var/cache/nginx D /var/cache/nginx/client_temp D /var/cache/nginx/fastcgi_temp D /var/cache/nginx/proxy_temp D /var/cache/nginx/scgi_temp D /var/cache/nginx/uwsgi_temp
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。