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

Instructions on how to debug and see logs from frontend container #29

Open
aditya211935 opened this issue Oct 16, 2022 · 1 comment
Open

Comments

@aditya211935
Copy link

aditya211935 commented Oct 16, 2022

When we do

# syntax = edrevo/dockerfile-plus

in a dockerfile, a docker container is launched from edrevo/dockerfile-plus image which contains the grpc server.

Is there any way to get logs from this frontend container for the purpose of debugging the build? This frontend container is short lived, so is there any way on getting the logs from this container?

I can see that some logs are being written to stderr in here https://github.com/edrevo/dockerfile-plus/blob/master/dockerfile-plus/src/dockerfile_frontend.rs#L111

Is there any way of seeing these logs? Even just being able to view stderr from the frontend container would suffice.

@aditya211935
Copy link
Author

@edrevo I can see the frontend container's /usr/local/bin/dockerfile-plus process inside the container docker run -it --rm --privileged --pid=host alpine:edge nsenter -t 1 -m -u -n -i sh.

However, this process is short lived and I'm not sure on how to get its stderr logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant