Skip to content

rootless still requires sudo #152

@begs

Description

@begs

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions