-
Notifications
You must be signed in to change notification settings - Fork 535
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
docker-compose exec Terminal output width is too narrow #273
Comments
Hi, I'm seeing same on my dev env. Also, you may want to check how long is your command line prompt when logged in to container, I had to add "COLUMNS=500" to my .bashrc file in php container. Since I did install new OS, I thought its specific to my env. I'm using "docker-compose exec php bash" to login to container and then run drush / drupal (console) stuff. |
@heylookalive Are you sure this is not just a problem with drush? |
We use |
I tried this in the Makefile: shell:
docker exec -ti -e COLUMNS=$(COLUMNS) -e LINES=$(LINES) $(shell docker ps --filter name='$(PROJECT_NAME)_php' --format "{{ .ID }}") sh and it worked, but I noticed that Turns out setting them to empty also "fixes" the narrow shell issue. shell:
docker exec -ti -e COLUMNS= -e LINES= $(shell docker ps --filter name='$(PROJECT_NAME)_php' --format "{{ .ID }}") sh Can someone elaborate on a possible reason why and how does that work? I'm on Linux with zsh. |
See referenced commit, we use I guess we'll see the fix in docker (moby) itself in the future moby/moby#35407 |
|
fix for terminal with issue. Read more: wodby/docker4drupal#273
When using
docker-compose exec...
the terminal output is too narrow, see screenshot:http://i68.tinypic.com/xlmc5y.jpg
Codebase
Drupal mounted codebase
Host OS
macOS High Sierra
Docker info output
Docker compose file
The text was updated successfully, but these errors were encountered: