1
0

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 3 years have passed since last update.

Docker逆引きメモ

Last updated at Posted at 2020-07-25

必要に迫られたDockerの逆引きメモです。

SQL Serverコンテナでbacpacファイルがインポートできない問題

SQL Server on Linux for Docker Engineを利用し際にSSMSからbacpacのインポートでエラーが発生することがあります。
このエラーが発生した場合、下記を行うとエラーが発生せずインポートすることができます。

  1. bacpacのデータベース名と同名の新規データベースを作成
  2. 作成した新規データベースを削除

Postgresコンテナでlocaleにja_JP.utf8を設定

手順としてはDockerFile作成、imageのビルドを行う。
Visual Studio CodeのDocker Pluginを使用すると楽。

環境

  • Windows10 Pro 1909
  • Docker 19.03.8

Docker file

FROM postgres:9.6.11
RUN localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.utf8
ENV LANG ja_JP.utf8

Build

docker build --pull --rm -f "postgres.9.6.11_ja.dockerfile" -t postgres:9.6.11_ja "."

参考

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?