0
点赞
收藏
分享

微信扫一扫

dockerscan扫描查看镜像内目录

Alex富贵 2022-02-22 阅读 53

说明:非官方的docker scan(有空格)

用于启动容器失败后,无法通过docker logs定位问题,只能把镜像内的文件解压出来调试

1.安装pip3

yum install -y pip3

2.安装dockerscan

pip3 install dockerscan

3.解压镜像文件

#保存redis镜像为本地tar文件
docker save -o redis.tar redis:latest
#解压镜像文件
dockerscan image extract  redis.tar  ./

其他操作:

Commands:
  analyze  looking for sensitive data from docker image
  extract  extract docker image content
  info     get docker image information
  modify   Modify a docker image commands
举报

相关推荐

0 条评论