You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation does not mention anything about my problem
There are no open or closed issues that are related to my problem
Description
Hi,
I'm trying to run this action in a runner that uses a distroless image without sudo available.
Expected behaviour
setup-docker-action installs Docker without needing sudo.
Actual behaviour
I'm trying to run this action using rootless:
with:
rootless: true
but I'm getting an error when it tries to start the Docker daemon.
Start Docker daemon
Error: Unable to locate executable file: sudo. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
I have the same issue, i've noticed that the logs provided by the actions are slightly different when the rootless: true parameter is provided, so the problem is not on this end but in this actions-toolkit line of code. @crazy-max
Log with rootless: true:
2025-04-17T15:30:38.0333455Z ##[group]Start Docker daemon
2025-04-17T15:30:38.0369595Z ##[endgroup]
2025-04-17T15:30:38.0398613Z ##[error]Unable to locate executable file: sudo. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
2025-04-17T15:30:38.0618205Z Post job cleanup.
Log with rootless: false:
> 2025-04-17T15:09:52.2825064Z ##[group]Start Docker daemon
2025-04-17T15:09:52.2837524Z [command] /__t/docker-archive-stable/28.0.4/x64/dockerd --host="unix:///github/home/setup-docker-action-10b1b8c4/docker.sock" --config-file="/github/home/setup-docker-action-10b1b8c4/daemon.json" --exec-root="/github/home/setup-docker-action-10b1b8c4/execroot" --data-root="/github/home/setup-docker-action-10b1b8c4/data" --pidfile="/github/home/setup-docker-action-10b1b8c4/docker.pid"
2025-04-17T15:09:52.2873385Z /bin/sh: 1: sudo: not found
2025-04-17T15:09:55.3050851Z ##[endgroup]
2025-04-17T15:09:55.3080792Z ##[error]The process '/__t/docker-archive-stable/28.0.4/x64/docker' failed with exit code 1
2025-04-17T15:09:55.3301118Z Post job cleanup.
Activity
wladpaiva commentedon Apr 3, 2025
Found the same error while running the action inside a container
GabrieleMessina commentedon Apr 17, 2025
I have the same issue, i've noticed that the logs provided by the actions are slightly different when the
rootless: trueparameter is provided, so the problem is not on this end but in this actions-toolkit line of code. @crazy-maxLog with
rootless: true:Log with
rootless: false:itsankit-google commentedon Jun 11, 2025
I have the same issue, with
rootless: trueit does not have an option to accept user as input param:v1993 commentedon Jul 24, 2025
Related issue:
sudois still required even if you're running the build container with--privilegedoption.Fix apps/server test-isolation env leak and CI Chrome auto-detection …