-
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
Tern crashes when running in a container #153
Comments
Running in a photonOS container with python and requirements installed. I found this:
The fs_hash script needs to be run as regular user but 'sudo' is used as a default. |
Also, in the Dockerfile, some extra stuff needs to happen before the photonOS container can run tern:
|
nishakm
pushed a commit
to nishakm/tern
that referenced
this issue
Jan 25, 2019
Currently, this hashing function needs to run as root. Sudo was hard coded into the subprocess call, which causes it to fail if the user running fs_hash was root, as is the case with Docker containers Fixes tern-tools#153 Signed-off-by: Nisha K <[email protected]>
nishakm
pushed a commit
that referenced
this issue
Jan 25, 2019
Currently, this hashing function needs to run as root. Sudo was hard coded into the subprocess call, which causes it to fail if the user running fs_hash was root, as is the case with Docker containers Fixes #153 Signed-off-by: Nisha K <[email protected]>
rnjudge
pushed a commit
to rnjudge/tern
that referenced
this issue
Jun 5, 2020
Currently, this hashing function needs to run as root. Sudo was hard coded into the subprocess call, which causes it to fail if the user running fs_hash was root, as is the case with Docker containers Fixes tern-tools#153 Signed-off-by: Nisha K <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running tern in a container with docker socket mounted, the debug message says "unable to load image metadata".
To Reproduce
Steps to reproduce the behavior:
Dockerfile:
run:
Error in terminal
Expected behavior
Should complete successfully
Environment you are running Tern on
photonOS container with host docker socket mounted
Please attach files if they exist
The text was updated successfully, but these errors were encountered: