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
Content type
Image
Digest
Size
112.3 MB
Last updated
almost 9 years ago
docker pull sasasasa/postgres