-
Notifications
You must be signed in to change notification settings - Fork 232
Description
When settings remove_images: true in my kitchen file, the images still remain.
Jenkins console log is showing:
unknown flag: --type See 'docker --help'. Usage: docker [OPTIONS] COMMAND
Found that code is issuing a 'docker docker inspect' command by mistake
def image_exists?(state) state[:image_id] && !!docker_command("docker inspect --type=image #{state[:image_id]}") rescue false end
removing the extra docker in the command seemed to fix the issue
def image_exists?(state) state[:image_id] && !!docker_command("inspect --type=image #{state[:image_id]}") rescue false end
This does result in having the whole image inspect output in the log, while that isn't a terrible thing its really not needed, could there be a better way of seeing if the image still exists?