{"action":"created","issue":{"url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/71","repository_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images","labels_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/71/comments","events_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/71/events","html_url":"https://github.com/CentOS/sig-cloud-instance-images/issues/71","id":195452942,"number":71,"title":"Default locale is set to en_US.UTF-8 but it's missing","user":{"login":"robinst","id":16778,"avatar_url":"https://avatars.githubusercontent.com/u/16778?v=3","gravatar_id":"","url":"https://api.github.com/users/robinst","html_url":"https://github.com/robinst","followers_url":"https://api.github.com/users/robinst/followers","following_url":"https://api.github.com/users/robinst/following{/other_user}","gists_url":"https://api.github.com/users/robinst/gists{/gist_id}","starred_url":"https://api.github.com/users/robinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinst/subscriptions","organizations_url":"https://api.github.com/users/robinst/orgs","repos_url":"https://api.github.com/users/robinst/repos","events_url":"https://api.github.com/users/robinst/events{/privacy}","received_events_url":"https://api.github.com/users/robinst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-14T06:44:58Z","updated_at":"2016-12-14T11:59:34Z","closed_at":null,"body":"We use the CentOS 7 image for testing, and have had an error related to locales that started happening only a few days ago. Steps to reproduce:\r\n\r\nUsing the following Dockerfile:\r\n\r\n    FROM centos:7\r\n    RUN yum -y install gcc libmemcached-devel\r\n\r\nBuild it:\r\n\r\n    $ docker build .\r\n\r\nRun the build image:\r\n\r\n    $ docker run -ti ab7f114ea298\r\n    bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory\r\n    bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory\r\n    bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory\r\n    bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory\r\n    bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory\r\n    [root@476f2cc9c761 /]# locale  \r\n    locale: Cannot set LC_CTYPE to default locale: No such file or directory\r\n    locale: Cannot set LC_MESSAGES to default locale: No such file or directory\r\n    locale: Cannot set LC_ALL to default locale: No such file or directory\r\n    LANG=en_US.UTF-8\r\n    LC_CTYPE=\"en_US.UTF-8\"\r\n    LC_NUMERIC=\"en_US.UTF-8\"\r\n    LC_TIME=\"en_US.UTF-8\"\r\n    LC_COLLATE=\"en_US.UTF-8\"\r\n    LC_MONETARY=\"en_US.UTF-8\"\r\n    LC_MESSAGES=\"en_US.UTF-8\"\r\n    LC_PAPER=\"en_US.UTF-8\"\r\n    LC_NAME=\"en_US.UTF-8\"\r\n    LC_ADDRESS=\"en_US.UTF-8\"\r\n    LC_TELEPHONE=\"en_US.UTF-8\"\r\n    LC_MEASUREMENT=\"en_US.UTF-8\"\r\n    LC_IDENTIFICATION=\"en_US.UTF-8\"\r\n    LC_ALL=\r\n    [root@476f2cc9c761 /]# locale -a\r\n    locale: Cannot set LC_CTYPE to default locale: No such file or directory\r\n    locale: Cannot set LC_MESSAGES to default locale: No such file or directory\r\n    locale: Cannot set LC_COLLATE to default locale: No such file or directory\r\n    C\r\n    POSIX\r\n    [root@476f2cc9c761 /]# cat /etc/locale.conf\r\n    LANG=\"en_US.UTF-8\"\r\n\r\nWe narrowed it down to the combination of the two packages `gcc` and `libmemcached-devel`. If just installing either one on its own, the problem doesn't occur. `libmemcached-devel` seems to pull in a package that creates `/etc/profile.d/lang.sh` which seems to be the thing setting the locale.\r\n\r\nBut somehow in that yum transaction, the locales seem to not be built properly, as you can see in the `locale -a` output above."},"comment":{"url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/comments/267016743","html_url":"https://github.com/CentOS/sig-cloud-instance-images/issues/71#issuecomment-267016743","issue_url":"https://api.github.com/repos/CentOS/sig-cloud-instance-images/issues/71","id":267016743,"user":{"login":"andrewmichaelsmith","id":686224,"avatar_url":"https://avatars.githubusercontent.com/u/686224?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewmichaelsmith","html_url":"https://github.com/andrewmichaelsmith","followers_url":"https://api.github.com/users/andrewmichaelsmith/followers","following_url":"https://api.github.com/users/andrewmichaelsmith/following{/other_user}","gists_url":"https://api.github.com/users/andrewmichaelsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmichaelsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmichaelsmith/subscriptions","organizations_url":"https://api.github.com/users/andrewmichaelsmith/orgs","repos_url":"https://api.github.com/users/andrewmichaelsmith/repos","events_url":"https://api.github.com/users/andrewmichaelsmith/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmichaelsmith/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T11:59:34Z","updated_at":"2016-12-14T11:59:34Z","body":"Also seeing this issue just now:\r\n\r\n```\r\n$ docker run -ti centos bash\r\n[root@f3d33016349f /]# locale -a\r\nC\r\nPOSIX\r\nen_US.utf8\r\n[root@f3d33016349f /]# yum install -y glibc\r\nLoaded plugins: fastestmirror, ovl\r\nbase                                                      ...\r\n....\r\n\r\nComplete!\r\n[root@f3d33016349f /]# locale -a               \r\nC\r\nPOSIX\r\n```"}}
{"actor":{"display_login":"andrewmichaelsmith"}}