We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like dockerpty is not compatible with docker version 3.0.0.
The text was updated successfully, but these errors were encountered:
It actually works with 3.0.0, you just need to pass in the low level api to start.
image = "nginx" dir = "/app" cwd = os.getcwd() container = client.api.create_container( image, "/bin/sh", volumes=[dir], host_config=client.api.create_host_config( binds={cwd: {"bind": dir, 'mode': 'rw'}} ), stdin_open=True, tty=True, environment={ "LANG": "C.UTF-8" } ) dockerpty.start(client.api, container)
Sorry, something went wrong.
It also works with client.containers.create with a simple replacement of container by container.id in the call of start:
client.containers.create
container
container.id
start
client = docker.from_env() container = client.containers.create(...) dockerpty.start(client.api, container.id)
Successfully merging a pull request may close this issue.
Looks like dockerpty is not compatible with docker version 3.0.0.
The text was updated successfully, but these errors were encountered: