dive地址:https://github.com/wagoodman/dive
我的os:
uname -a Linux ecs-5fd1 4.19.36-vhulk1907.1.0.h962.eulerosv2r8.aarch64 #1 SMP Fri Jan 8 13:18:01 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
编译:
git clone https://github.com/wagoodman/dive.git cd dive make
正常情况会生成可执行文件:
ll dist/dive_linux_amd64/ 总用量 12732 -rwx------ 1 root root 13033548 1月 18 23:12 dive
遇到的报错:
go: verifying github.com/docker/engine@v0.0.0-20190822205725-ed20165a37b4: checksum mismatch downloaded: h1:yMm1p+pQCARg8dqSTv118koQcpMMSTrIishAIPX3BbE= go.sum: h1:hB02X3RT4IZUr/dm+zIXpAlpvQPtRyKBEA/CbzshNZ8= make: *** [Makefile:140:gofmt] 错误 1
可能是go版本过低,当前1.11,升级到1.17j解决。
使用:
dive imagename