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

rootless still requires sudo #152

Open
3 tasks done
begs opened this issue Feb 21, 2025 · 0 comments
Open
3 tasks done

rootless still requires sudo #152

begs opened this issue Feb 21, 2025 · 0 comments

Comments

@begs
Copy link

begs commented Feb 21, 2025

Contributing guidelines

I've found a bug, and:

  • 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.

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Setup Docker
  uses: docker/setup-docker-action@v4
  with:
    rootless: true

Workflow logs

No response

Docker daemon logs


Additional info

No response

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

No branches or pull requests

1 participant