slimtoolkit / slim

Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
19.49k stars 730 forks source link

docker-slim info not generating dockerfile #50

Open thatsk opened 6 years ago

thatsk commented 6 years ago

root@node: ~/mobi-docker# docker-slim info 3afd47092a0e 2018/04/25 12:44:17 Couldn't set key CPE_NAME, no corresponding struct field found 2018/04/25 12:44:17 Couldn't set key , no corresponding struct field found 2018/04/25 12:44:17 Couldn't set key CENTOS_MANTISBT_PROJECT, no corresponding struct field found 2018/04/25 12:44:17 Couldn't set key CENTOS_MANTISBT_PROJECT_VERSION, no corresponding struct field found 2018/04/25 12:44:17 Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found 2018/04/25 12:44:17 Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found 2018/04/25 12:44:17 Couldn't set key , no corresponding struct field found docker-slim: [info] image= 3afd47092a0e docker-slim: [info] done.

thatsk commented 6 years ago

but i am not able to see the dockerfile

kcq commented 6 years ago

Thank you for reporting this! Those are harmless messages from the os-release filer parser (/etc/os-release). The parser complains that it doesn't have anywhere to put those extra fields on Centos.

More useful information should be available if you use the --debug and --show-clogs flags (e.g., docker-slim --debug build --show-clogs your_target_image_here).

Either way, I'll post more information once after I get a chance to try Centos.