LoginSignup
1
2

More than 5 years have passed since last update.

Docker日本語 有効化 メモ

Posted at

debianベースのイメージ(Docker HubのMySQLなど)で日本語を有効化する方法のメモ

日本語を有効化したイメージをビルドする

Dockerfile
RUN apt-get update && apt-get install -y locales
RUN echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
ENV LANG=ja_JP.UTF-8

タイムゾーンをjstにする

ENV TZ=Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1
2
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
1
2