Sign inSign up

sasasasa/postgres

By sasasasa

•Updated almost 9 years ago

postgres 日本語化

Image
0

157

sasasasa/postgres repository overview

⁠Dockerfile

FROM postgres
RUN localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.UTF-8
ENV LANG ja_JP.utf8
RUN rm -f /etc/localtime && \
    ln -fs /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

⁠実行

docker run --name postgres -e POSTGRES_PASSWORD=sasasasa -e POSTGRES_INITDB_ARGS="--encoding=UTF-8 --locale=C" -d -p 5432:5432 sasasasa/postgres

⁠確認

$ docker exec -it postgres bash
# psql -U postgres
postgres=# \l
postgres=# \q

Tag summary

Content type

Image

Digest

Size

112.3 MB

Last updated

almost 9 years ago

docker pull sasasasa/postgres