Regarding usage of "debug" tag with distroless/cc-debian11

160 views
Skip to first unread message

Keval Bhogayata

unread,
Jul 21, 2022, 12:08:49 AM7/21/22
to Distroless Users
My rust application works fine with cc-debian11 as given below

COPY --from=previous /myapp /usr/bin
WORKDIR /usr/bin
docker run <image-name> ./myapp
__________________________
But, when I use it with "debug" tag

COPY --from=previous /myapp /usr/bin
WORKDIR /usr/bin
docker run <image-name> ./myapp 

This time it gives me some error regarding
syntax error: unexpected "("
I got the bash access though, but I am stuck with this new error !


Andrew Latham

unread,
Jul 21, 2022, 11:33:02 AM7/21/22
to Distroless Users
Knee jerk while I have a min, Busybox is used in debug and does not behave the same as systems/shells like Debian and BASH. Try setting an entrypoint or cmd in your dockerfile like the guide shows. https://github.com/GoogleContainerTools/distroless/blob/main/README.md?plain=1#L164-L199

Note the ```syntax error: unexpected "("``` is related to failed execution and reading headers.

--
You received this message because you are subscribed to the Google Groups "Distroless Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distroless-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/distroless-users/49db1ec3-f7c9-46ca-98c5-cd1a1cbbc540n%40googlegroups.com.


--
- Andrew "lathama" Latham -
Reply all
Reply to author
Forward
0 new messages