docker 常用命令

71 阅读1分钟

容器卷:
创建时: 宿主机的文件会覆盖容器中的文件

查看镜像历史
docker history --no-trunc

查看镜像暴露的端口
docker history --no-trunc | grep EXPOSE

查看所有容器卷
docker volume ls

查看xxx的卷信息
docker volume inspect xxx