-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when processing Docker's "hello world" #117
Comments
Looks like there was an error in running |
I tried it locally and I am getting a different error:
So several issues:
|
This is indeed the case: $ docker save docker.io/hello-world:latest -o /tmp/backup So the error message would not be what I had expected. |
This is the standard "hello world" from Docker: https://hub.docker.com/_/hello-world/ |
Docker's hello-world container consists of only 1 executable file |
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
The text was updated successfully, but these errors were encountered: