teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

d

2018/11/23 07:00

投稿

tiitoi
tiitoi

スコア21960

title CHANGED
File without changes
body CHANGED
File without changes

1

d

2018/11/23 07:00

投稿

tiitoi
tiitoi

スコア21960

title CHANGED
File without changes
body CHANGED
@@ -22,15 +22,15 @@
22
22
  $ docker build --tag test . # ホスト側
23
23
  $ docker run -itP -p 2222:22 --rm test # ホスト側
24
24
  $ echo $LANG # コンテナ側
25
- LANG C.UTF-8
25
+ C.UTF-8
26
26
  ```
27
27
 
28
28
  ssh ログインした場合には参照できない。
29
29
 
30
30
  ```bash
31
31
  $ ssh -p 2222 root@localhost # ホスト側
32
- # password は root # コンテナ側
32
+ # password は root
33
- $ echo $LANG
33
+ $ echo $LANG # コンテナ側
34
34
 
35
35
  # 環境変数が参照できない
36
36
  ```