Skip to content

docker run alternative #5259

@remal

Description

@remal

I'd like to execute a command like this: docker run schemaspy/schemaspy <options>. Is it possible to do it via Testcontainers?

If I understand correctly, Testcontainers requires me to start the container first and then execute a command inside a running container. However, I don't want to start the container - I'd like to execute a command in the container synchronously and get a result.

I suppose I have to "disable" ENTRYPOINT and then call execInContainer(). If it is so, could you please explain how to "disable" ENTRYPOINT? Replacing ENTRYPOINT with some dummy command, like touch is not an option, as a container can be "distroless".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions