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

explicitly issued environment variable as per - https://github.com/dockerfile/m... #7

Merged
merged 1 commit into from
Jan 27, 2015

Conversation

gl2748
Copy link
Contributor

@gl2748 gl2748 commented Jan 26, 2015

...ariadb/issues/3

This may be a result of the docker exec command (Docker.v.1.3 +) so is only recently apparent, but when you docker exec bash into the running mariadb container and subsequently attempt to access the database with the mysql command it throws an error TERM environment variable not set.

A fix is to run export TERM=dumb and then run mysql again.

Similarly, by explicitly setting environment variable in the dockerfile, the error message never appears, i.e. adding ENV TERM dumb

Note: I have only used the first method successfully but have added the solution to this Dockerfile based on the documentation of this issue here: dockerfile/mariadb#3

@bnchdrff
Copy link
Owner

Handy. I usually just connect remotely so i never ran into this bug.

bnchdrff added a commit that referenced this pull request Jan 27, 2015
@bnchdrff bnchdrff merged commit 8373765 into bnchdrff:master Jan 27, 2015
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

Successfully merging this pull request may close these issues.

2 participants