-
Notifications
You must be signed in to change notification settings - Fork 31
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
"TERM environment variable not set." when executing "mysql" in container #3
Comments
I have same problem. txthai, thank you for solution! |
Good to know. Thanks. |
LOL I had this issue too, thanks for the tip. |
thanks, had the same issue with postgresql container and top |
+1 |
_CoreOS stable (723.3.0)_ unfortunately your solution doesn't work 😫 _UPD:_ Ok, I was actually able to ssh to a container docker run -it mariadb_container bash and then inside set TERM variable |
|
Or |
thank you ! Nice to know that. |
Hey guys, try the following to get a nicer top export TERM=xterm |
Better way: Then logout and login again 👍 |
Tried to run an image of ownCloud and ran into this exact problem. running export TERM=dumb does get rid of the error message however commands like clear and top doesn't seem to work. Running export TERM=xterm did the trick though, anyone care to explain why? |
@txthai WOW! it works perfect! thank you so much! |
I had the same problem after installing MariaDB 10.1 on official debian image, tag "jessie". |
On a Debian container, when I run this: apt-get install software-properties-common I get a long output with these lines: Setting up unattended-upgrades (0.83.3.2+deb8u1) ... Hope this helps. |
+1 |
Thanks for the great tip! |
any idea to fix this? |
|
This in the Dockerfile works. Setting it to xterm rather than dumb also fixed the clear command. RUN echo -e "\nexport TERM=xterm" >> ~/.bashrc |
+1 Thank you so much! @txthai Why is this happened! |
There is still a problem if you try to do something like:
|
This worked for me: |
|
This will be fixed in Docker 1.13, FYI: moby/moby#26461 |
@geerlingguy Thanks that's good news! |
See source and solution dockerfile/mariadb#3
docker exec -it mariadb bash
mysql
produces the following error message:
TERM environment variable not set.
Unsure why since
echo $TERM
returnsdumb
and issuingexport TERM=dumb
resolves issue.If the environment variable is explicitly issued in the dockerfile, the error message never appears, i.e. adding
ENV TERM dumb
The text was updated successfully, but these errors were encountered: