LoginSignup
0
0

More than 1 year has passed since last update.

[Docker]/bin/sh: /go/bin/dlv: not found

Posted at

記事を書いた経緯

タイトル通りGoAPIのdocker-compose上で/bin/sh: /go/bin/dlv: not foundというエラーが発生してしまったので
その解決策をメモしておきたいと思います。

原因

mainブランチを更新した時にDockerfileに

Dockerfile.dev
RUN go install github.com/go-delve/delve/cmd/dlv@latest

というのか追加されました。

しかし、いつも通り

$ docker-compose down
$ docker-compose up

をしましたが、
スクリーンショット 2022-01-14 13.56.19.png
Airが正常に動作しませんでした。

解決策

$ docker-compose build
$ docker-compose up

で解決しました。
Dockerfileが書きかわったら、一回ビルドしないと読み込まれないんですね笑

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