Docker Notes

Docker的安装

sudo curl -fsSL https://get.docker.com/ | sh

Locale Setting for Docker Image/Container

The locale of a docker container can be specified in Dockerfile or as an argument for the docker run command.

Dockerfile

FROM ubuntu:trusty
ENV LANG en_US.UTF-8
CMD ["/bin/bash"]

Docker Run Command Argument

docker run -it -e LANG=en_US.utf8 ner-service:1.0 /bin/bash