外部サイト
マニュアル
やりたいこと
Dockerコンテナの中から、ssh接続をすると、 接続元(Dockerコンテナ)のLANGが接続先に引き継がれてしまいます。
前提条件
python:2.7-stretch で確認しています。
原因
/etc/ssh/ssh_config (sshd_configではない)に、
SendEnv LANG LC_*と書かれているからです。
修正方法
いろいろありますが、自分はDockerfileに
cp /dev/null /etc/ssh/ssh_configを入れて対処しました。
外部サイト
- ssh - Locale variables have no effect in remote shell (perl: warning: Setting locale failed.) - Ask Ubuntu
- ssh - Locale variables have no effect in remote shell (perl: warning: Setting locale failed.) - Ask Ubuntu