Skip to content

Crash when processing Docker's "hello world" #117

@armijnhemel

Description

@armijnhemel

I tried to generate a report for Docker's hello world image, but tern crashed:

$ ./tern report -i docker.io/hello-world:latest
2018-11-07 20:44:35,758 - DEBUG - tern - Starting...
2018-11-07 20:44:35,759 - DEBUG - container - Running command: sudo docker ps
2018-11-07 20:44:35,787 - DEBUG - report - Setting up...
2018-11-07 20:44:35,788 - DEBUG - container - Running command: sudo docker images docker.io/hello-world:latest
2018-11-07 20:44:35,817 - DEBUG - container - Running command: sudo docker save docker.io/hello-world:latest
2018-11-07 20:44:35,853 - WARNING - report - Cannot retrieve full image metadata
2018-11-07 20:44:35,853 - DEBUG - report - Teardown...
2018-11-07 20:44:35,853 - DEBUG - rootfs - Running command: sudo rm -rf temp/mergedir
Traceback (most recent call last):
File "./tern", line 91, in
main(args)
File "./tern", line 47, in main
report.execute_docker_image(args)
File "/home/armijn/git/tern/report/report.py", line 402, in execute_docker_image
teardown()
File "/home/armijn/git/tern/report/report.py", line 75, in teardown
rootfs.clean_up()
File "/home/armijn/git/tern/utils/rootfs.py", line 163, in clean_up
root_command(remove, mergedir_path)
File "/home/armijn/git/tern/utils/rootfs.py", line 57, in root_command
raise subprocess.CalledProcessError(1, cmd=full_cmd, output=error)
subprocess.CalledProcessError: Command '['sudo', 'rm', '-rf', 'temp/mergedir']' returned non-zero exit status 1.

This is with 61f3a67

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething went wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions