メンチカツ

ロースカツが好きです

Docker

【メモ】failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests latest]: 400 Bad Request

ECRのイメージをビルドするときに以下のエラーになりました。 => [internal] load build definition from Dockerfile.lambda 0.0s => => transferring dockerfile: 44B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => …

【メモ】 php:7.3-fpm コンテナに多言語対応モジュール intl を入れる

PHPで多言語対応の際使うメソッド Locale::acceptFromHttp() を利用するために intl を有効にします。 https://www.php.net/manual/ja/intro.intl.php んで、合わせて libicu-dev をインストールします。これを忘れちゃう!なのでメモ。 Dockerfile に追加し…

【メモ】docker-compose 環境の Ruby on Rails で bundler が利用できない

Dockerコンテナのなかで rails console すると起動出来ない。 $ rails console Could not find gli-2.19.0 in any of the sources Run `bundle install` to install missing gems. bundle install しても治らない。 $BUNDLE_PATH が上書きされていた。 $ ech…

【メモ】docker-composeで起動したNuxt.jsアプリに繋がらない

コンテナでは起動を確認できる( docker-compose exec [コンテナ名] bash で、 curl localhost:8080 とすると起動してればhtmlが返る )のに、ホスト側で見れない。 package.json を以下のように書き換えたら見られるようになった。 # これを "scripts": { "de…

【メモ】golangのライブリローディング fresh(on Docker Compose) で inotify_init: too many open files

こちらで解決しなかった inotify_init: too many open files watchするファイル数が多すぎるのが原因だったので、freshのconfigを用意してvendorディレクトリをignoredに入れました。 https://github.com/pilu/fresh root: . tmp_path: ./tmp build_name: ru…

【メモ】Docker Compose で inotify_init: too many open files

Docker(compose)に乗せたgolangのアプリにライブリロード(fresh)を入れたら inotify_init: too many open files エラーで起動しなくなりました。 これは docker-compose に以下のように ulimits セクションを追加したら解消されるようです。 ulimits: nproc:…

【メモ】Ethereumのgeth環境をDockerで立てるMakefile

二番煎じのエントリです。すみません。 こちらの記事で気軽にEthereumの環境を構築できたのが嬉しかったので qiita.com Makefileにしてみました。 github.com dockerのオプション覚えられないマンです。

Railsのサービス を docker-compose up したら A server is already running. Check /[WORKDIR]/tmp/pids/server.pid.

Railsのサービス を docker-compose up したら A server is already running. Check /[WORKDIR]/tmp/pids/server.pid. が出て困るぞというときがあります。 サービス起動したままホストをシャットダウンとか、へんな落とし方するとpidファイルが残ってしまう…

Docker for Macで「com.docker.osx.hyperkit.linux failed to start Exit code 1」

Docker for Macをアップデートしたらこんなエラーが出て起動できなくなった。 調べると、リセットしたほうがイイヨー、アンインストールダヨーって意見が 出てくるんだけど、もうちょっと調べると github.com rm ~/Library/Containers/com.docker.docker/Dat…

【メモ】dockerに「Error response from daemon: client is newer than server」と言われる

docker氏に、クライアントとサーバーのAPIバージョンが相違しているよ!って怒られた $ docker version Client: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git commit: 8eab29e Built: Thu Jul 28 21:15:28 2016 OS/Arch: darwin/amd64 Error …

Mac OS X で Docker(+nginx)を試す

Dockerでnginxに「Welcome to nginx!」と言われたい # docker と boot2docker をインストールしよう brew install docker boot2docker # boot2docker を準備しよう boot2docker init #=>Success: downloaded https://github.com/boot2docker/boot2docker/rel…