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
passing stdin to command for docker-based WP instances #4972
Comments
Yes, indeed. Are you up for providing a PR for that? |
Sorry, I currently can't do it. (@chriszarate maybe ? :)) |
No need to be sorry, pointing out the issue was already a win for the project! So, thanks for that! :) |
I wonder if this has something to do with an error I'm seeing. I make use of Lando (https://github.com/lando/lando), which is a slick set of WP-centric containers that run through Docker. I upgraded to their latest release, which seems to have made wp-cli confused. I get DB connection errors just typing Anything I can help to debug, like logs?
|
I think I'm running into this issue while importing/exporting a database. I am getting the following message: My situation: My local wp-cli.yml:
My remote wp-cli.yml: My command: It will work when I run it in reverse: |
Little update on this: I forced the command to run with -T and the import runs succesfully. The code in question is found at: The Docker Compose documentation describes the -T option as follows:
@schlessera I'm a bit out of my depth here and I'm not sure what's the best way to approach this, but I would like to help and maybe submit a PR. Should the pseudo-tty be disabled by default on |
I ran into my wp-cli.yml
If I try to run a simple command, it will work, no problem: This issue seems to only affect the |
PR #4240 did not considered using the
docker exec
--interactive option.That causes problem when it comes to passing stdin to wp-cli, for example
wp db import
The text was updated successfully, but these errors were encountered: