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

Bug: DockerCompose.client_args not working #596

Open
dankirkham opened this issue Jun 3, 2024 · 1 comment
Open

Bug: DockerCompose.client_args not working #596

dankirkham opened this issue Jun 3, 2024 · 1 comment

Comments

@dankirkham
Copy link

Describe the bug

I was trying to pass client_args to the DockerCompose constructor. However, I get the error:

Traceback (most recent call last):
  File <removed>, in <module>
    test_foo()
  File <removed>, in test_foo
    compose = DockerCompose(
              ^^^^^^^^^^^^^^
TypeError: DockerCompose.__init__() got an unexpected keyword argument 'client_args'

I presume this is because it is in the doc string, but not the actual class definition.

To Reproduce

from testcontainers.compose import DockerCompose

compose = DockerCompose(
    client_args=True,
)

Runtime environment

testcontainers-python is 4.5.1 on Debian
Docker version 26.1.3-1, build b72abbb6f0351eb22e5c7bdbba9112fef6b41429
Docker Compose version v2.27.1

@alexanderankin
Copy link
Collaborator

thats correct, it just calls subprocess.run to execute "docker compose" commands, so there is no meaning for client_args

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

No branches or pull requests

2 participants