{"action":"created","issue":{"url":"https://api.github.com/repos/dockerfile/mariadb/issues/3","repository_url":"https://api.github.com/repos/dockerfile/mariadb","labels_url":"https://api.github.com/repos/dockerfile/mariadb/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dockerfile/mariadb/issues/3/comments","events_url":"https://api.github.com/repos/dockerfile/mariadb/issues/3/events","html_url":"https://github.com/dockerfile/mariadb/issues/3","id":47879521,"number":3,"title":"\"TERM environment variable not set.\" when executing \"mysql\" in container","user":{"login":"txthai","id":6398600,"avatar_url":"https://avatars.githubusercontent.com/u/6398600?v=3","gravatar_id":"","url":"https://api.github.com/users/txthai","html_url":"https://github.com/txthai","followers_url":"https://api.github.com/users/txthai/followers","following_url":"https://api.github.com/users/txthai/following{/other_user}","gists_url":"https://api.github.com/users/txthai/gists{/gist_id}","starred_url":"https://api.github.com/users/txthai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txthai/subscriptions","organizations_url":"https://api.github.com/users/txthai/orgs","repos_url":"https://api.github.com/users/txthai/repos","events_url":"https://api.github.com/users/txthai/events{/privacy}","received_events_url":"https://api.github.com/users/txthai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2014-11-05T19:48:57Z","updated_at":"2016-04-07T12:56:18Z","closed_at":null,"body":"`docker exec -it mariadb bash`\r\n`mysql`\r\nproduces the following error message: `TERM environment variable not set.`\r\n\r\nUnsure why since `echo $TERM` returns `dumb` and issuing `export TERM=dumb` resolves issue.\r\n\r\nIf the environment variable is explicitly issued in the dockerfile, the error message never appears, i.e. adding `ENV TERM dumb`"},"comment":{"url":"https://api.github.com/repos/dockerfile/mariadb/issues/comments/206882250","html_url":"https://github.com/dockerfile/mariadb/issues/3#issuecomment-206882250","issue_url":"https://api.github.com/repos/dockerfile/mariadb/issues/3","id":206882250,"user":{"login":"zburgermeiszter","id":5986229,"avatar_url":"https://avatars.githubusercontent.com/u/5986229?v=3","gravatar_id":"","url":"https://api.github.com/users/zburgermeiszter","html_url":"https://github.com/zburgermeiszter","followers_url":"https://api.github.com/users/zburgermeiszter/followers","following_url":"https://api.github.com/users/zburgermeiszter/following{/other_user}","gists_url":"https://api.github.com/users/zburgermeiszter/gists{/gist_id}","starred_url":"https://api.github.com/users/zburgermeiszter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zburgermeiszter/subscriptions","organizations_url":"https://api.github.com/users/zburgermeiszter/orgs","repos_url":"https://api.github.com/users/zburgermeiszter/repos","events_url":"https://api.github.com/users/zburgermeiszter/events{/privacy}","received_events_url":"https://api.github.com/users/zburgermeiszter/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T12:56:18Z","updated_at":"2016-04-07T12:56:18Z","body":"This worked for me:\r\nhttps://gist.github.com/zburgermeiszter/89a41467c80327c0bb550a2c7077d747"}}