Docker

DockerでUnicodeError(Ubuntu)

問題 DockerでUbuntuのイメージを作成したところUnicodeErrorが出てしまう。 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128) 解決策 % apt-get install language-pack-ja % update-locale LANG=ja_…

【エラー】google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application

エラー $ docker-compose up <SEVICE_NAME> google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more info</sevice_name>…

【Docker】ERROR: unauthorized: authentication required

環境 Mac: Mojave 10.Mojave 10.14.1 Doker: 18.09.0 エラー内容 あるプロジェクトをcloneしてきて以下のコマンドを打ったところでエラー発生。 $ docker-compose run init Creating network "docker_default" with the default driver Pulling db (mysql:5.…

【Docker・Django】pip installしてるはずなのにModuleNotFoundError + curlでAccess-Control-Allow-Originを表示させる方法

ずっとModuleNotFoundError アプリケーションはpip installしてるはずなのにdockerのログを見るとModuleNotFoundErrorが出てる。 一応再インストールしてみるけどもう入ってると言われる。 $ curl -i http://localhost:8000/api/threads/?format=json curl: …