Description of problem: ----------------------- On executing /bin/bash in RHGS container, the following bash warnings are seen - -bash-4.2# docker exec -ti 7e7ec6f85e09384edf20a9366b03af99e563f1b88ea4dda091e47bbe01938e7a /bin/bash bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory Version-Release number of selected component (if applicable): ------------------------------------------------------------- rhgs-server-rhel7:3.1.2-5 How reproducible: ----------------- 100% Steps to Reproduce: ------------------- 1. Execute /bin/bash in RHGS container - docker exec -ti <container-id> /bin/bash Actual results: --------------- Even though a shell is obtained, the above described warnings are seen. Expected results: ----------------- No warnings.
These are just warning about the locale which can be ignored, however below solution may resolve this issue. Removing the below from /etc/sysconfig/i18n : LANG="en_US.UTF-8" @ashiq, can you please try this in dockerfile in your next build?
It should be /etc/locale.conf instead of /etc/sysconfig/i18n [root@dhcp35-20 hchiramm]# cat /etc/locale.conf #LANG="en_US.UTF-8" [root@dhcp35-20 hchiramm]#
Verified as fixed in rhgs-server-rhel7:3.1.2-6. Warnings no longer observed.