Skip to content
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

[BUG] Error messages from Docker daemon are not surfaced in Privado scan #200

Open
HiteshMah-Jan opened this issue Mar 10, 2023 · 0 comments
Assignees
Labels
bug Something isn't working cli The issue is related to Privado CLI

Comments

@HiteshMah-Jan
Copy link
Contributor

Describe the bug
While running a privado scan the cli tried to download a latest docker image. It was observed that the image was getting pulled each time privado scan was executed. The Versions shown in scan logs were also the same every time.

Privado CLI Version: v2.2.3
Privado Core Version: 1.1.24
Privado Language Engine Version: 1.1.1494

Upon further debugging it was seen that there was an error message after downloading the image:

$ sudo docker pull public.ecr.aws/privado/privado:latest
latest: Pulling from privado/privado
1e4aec178e08: Already exists 
6c1024729fee: Already exists 
c3aa11fbc85a: Already exists 
aa54add66b3a: Already exists 
424a482a2426: Already exists 
dd5f058a2da2: Already exists 
a26613b8e79c: Extracting [==================================================>]  116.5MB/116.5MB
81c05861dd9f: Download complete 
8cb96d44b91c: Download complete 
b8175293c6ec: Download complete 
e1a7c84062da: Download complete 
d03dbf7539f0: Download complete 
25040cac1480: Download complete 
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so: no space left on device

To Reproduce
This happens in case when there is some error within docker while/after downloading image.

  • Fill up the disk space of machine.
  • Try running privado scan
  • No error is seen under Privado Cli Logs

Expected behavior
These ERROR messages from docker daemon should be surfaced into privado's output

Desktop (please complete the following information):

  • OS: [Centos 8]
  • Browser [N/A]
  • Version [Privado CLI: Version v2.2.3 (linux-amd64)]
@HiteshMah-Jan HiteshMah-Jan added the bug Something isn't working label Mar 10, 2023
@HiteshMah-Jan HiteshMah-Jan added the cli The issue is related to Privado CLI label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli The issue is related to Privado CLI
Projects
None yet
Development

No branches or pull requests

3 participants