Dockerエラー
13件の記事
概要
Dockerの操作中に発生するエラーの診断ガイドです。ビルド、コンテナ起動、デーモン接続、リソース不足などの問題を解決します。
どこでエラーが出た?
| 状況 | エラー | 主な原因 |
|---|---|---|
docker build 実行時 | COPY failed: file not found | ビルドコンテキスト外のファイル参照 |
| build failed | Dockerfile の構文・依存エラー | |
| Layer not found | ベースイメージ・レイヤー破損 | |
| image not found | イメージ名の誤り・認証不足 | |
docker run / docker-compose up 実行時 | Container exited with code 1 | アプリケーションのクラッシュ |
| Service failed to start | 依存サービス・設定の問題 | |
| OCI runtime create failed | ランタイム設定・バイナリ不整合 | |
| exec: no such file or directory | エントリポイントのパス誤り | |
| Docker コマンド自体が動かない | Cannot connect to the Docker daemon | デーモン未起動・権限不足 |
| ディスク・メモリ不足 | no space left on device | 未使用イメージ・ボリュームの蓄積 |
| OOM Killed | コンテナのメモリ制限超過 | |
| invalid mount config | ボリュームパス・権限の問題 | |
| ポート競合 | port is already allocated | 他プロセスがポートを使用中 |
切り分けフローチャート
Dockerエラー発生
├── docker build で発生?
│ ├── COPY/ADD でエラー → build-context-error
│ ├── イメージが見つからない → image-not-found
│ └── その他のビルドエラー → build-failed / layer-not-found
├── docker run / compose up で発生?
│ ├── すぐに終了する → container-exited / exec-no-such-file
│ ├── 起動しない → compose-service-failed / oci-runtime-error
│ └── 途中で落ちる → oom-killed-container
├── docker コマンド自体がエラー?
│ └── デーモンに接続できない → cannot-connect-to-daemon
└── リソース系エラー?
├── ディスク → no-space-left-on-device
├── メモリ → oom-killed-container
├── ボリューム → volume-mount-failed
└── ポート → port-already-allocated
docker build でどんなエラー?
コンテナ起動でどんなエラー?
Docker自体が動かない?
リソース系エラー?
お探しの環境がありませんか?
全記事一覧
- Bind for 0.0.0.0:PORT failed: port is already allocated
- Cannot connect to the Docker daemon
- Container killed due to OOM (Out of Memory)
- COPY failed: file not found in build context
- Docker Compose: Service failed to start
- Docker: build failed
- Docker: Container exited with code 1
- Docker: image not found / pull access denied
- Docker: Layer not found
- Docker: no space left on device
- Docker: OCI runtime create failed
- Error response from daemon: invalid mount config
- standard_init_linux.go: exec user process caused 'no such file or directory'
この記事は役に立ちましたか?