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

[Enhancement]: Support nerdctl and docker commands #819

Open
kieronlanning opened this issue Mar 6, 2023 · 4 comments
Open

[Enhancement]: Support nerdctl and docker commands #819

kieronlanning opened this issue Mar 6, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@kieronlanning
Copy link

Problem

Unable to use testcontainers when using nerdctl.

Tools such as Rancher Desktop allow you to choose between docker and nerdctl.

Solution

Support the nerdctl or docker command. The CLI command structures are identical to support compatibility.

Either through configuration or auto-detection (preferred) to allow developers running different local setups to still be able to run tests.

Benefit

Supports a wider range of developers.

Alternatives

N/A

Would you like to help contributing this enhancement?

Yes

@kieronlanning kieronlanning added the enhancement New feature or request label Mar 6, 2023
@kieronlanning kieronlanning changed the title [Enhancement]: [Enhancement]: Support nerdctl and docker commands Mar 6, 2023
@HofmeisterAn
Copy link
Collaborator

The CLI command structures are identical to support compatibility.

Do you know if nerdctl is Docker Engine API compatible? Testcontainers does not use the CLI implementation of Docker. It relies on Docker's Engine API.

@kieronlanning
Copy link
Author

@HofmeisterAn I don't believe so... however, there are projects that bridge both:

https://github.com/afbjorklund/nerdctld found via containerd/nerdctl#798

@HofmeisterAn
Copy link
Collaborator

Okay, this sounds similar to Podman support. I think the Podman developers use TC to test their API compatibility. Maybe that makes sense for nerdctl too. I am happy to continue with nerdctl support as soon as it is compatible.

@kieronlanning
Copy link
Author

Wicked, thankyou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants