Closed phuongnq closed 1 month ago
@sumerjabri @russdanner This seems to happen after the switch off from gosu
.
I have updated the following:
Update the entry points to remove the double quotes as the command exec "$@"
failed. For example, running exec "ls -la ."
will always be failed with sh
(the default shell for Alpine). We should instead run exec ls -la .
. I updated so that in the case of using root, run su crafter -c "$*"
. Notice the option "$*"
, this makes sure all parameters are read as a single string.
An optional update. I removed the option -S
when creating crafter
user. This option creates a system user without a login shell. By removing this option, we can remove the param -s /bin/bash
to use the default shell which is /bin/sh
for Alpine while running su crafter -c
commands to set git configuration.
Hi! Updated and rechecked this issue. Fix verified for both v4.1.9 and v4.2.0. Thank you! Closing this ticket.
CI Number
5330
Duplicates
Latest version
Describe the issue
Building images with
rootless
option does not workSteps to reproduce
Steps:
Relevant log output
No response
Screenshots and/or videos
No response