Skip to content

[Bug]: relative path in 'entrypoint' is not accepted #962

@BatmanAoD

Description

@BatmanAoD

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

(Sorry for not trying the main branch; I don't have a swift toolchain set up at the moment.)

(Note: this should possibly be categorized as a feature request rather than a bug; I wasn't sure.)

Steps to reproduce

Run any image that users a relative path as an entrypoint, or explicitly specify a relative path in the --entrypoint argument.

As an example:

container run -w /usr/local/cargo/bin --entrypoint ./rustc rust:latest --version

Current behavior

This error is printed:

Error: internalError: "failed to find target executable ./rustc"

Expected behavior

This should run the rustc binary at /usr/local/cargo/bin/rustc, and print a version string. With podman or docker:

> podman run -w /usr/local/cargo/bin --entrypoint ./rustc rust:latest --version
rustc 1.92.0 (ded5c06cf 2025-12-08)

Environment

- OS: macOS 26.1
- Xcode: (not installed)
- Container: container CLI version 0.7.1 (build: release, commit: 420be74)

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions