23
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Dockerにubuntuのコンテナを作成・日本語化する

Last updated at Posted at 2017-11-29

##ubuntuのimageをpullする

$ docker ubuntu

※ここで一回通らなかったので、プロキシを設定しました。

##コンテナ作成・実行

$ docker run -i -t ubuntu /bin/bash

##日本語化

root #  locale-gen ja_JP.UTF-8
bash: locale-gen: command not found

locale-genが使えない。

↓のブログによると、language-pack を入れないといけないようです。
docker の ubuntu イメージで日本語が入力できない件

##language-pack入れて日本語化

root #  apt-get install language-pack-ja-base language-pack-ja
root # locale-gen ja_JP.UTF-8

Generating locales (this might take a while)...
  ja_JP.UTF-8... done
Generation complete.

できたっぽい。

root #  echo export LANG=ja_JP.UTF-8 >> ~/.profile
root # source ~/.profile
root # date
2017年 11月 29日 水曜日 10:26:01 UTC

というわけでできました!

23
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?