3
1

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 1 year has passed since last update.

Dockerファイル変更時に変更が反映されないことを防ぐために

Last updated at Posted at 2022-04-20

開発中にDockerfileを更新したらdocker-compose buildしてもcacheが有効になっていて設定変更が反映されないことがある
docker-compose build --no-cache
しておくのが安全

そのあと、念の為docker-compose up --force-recreateしておくとコンテナを再作成して起動できる。
なので変更が反映されていないという問題が減るはず。

参考記事

https://codenote.net/vm/docker/3756.html
https://codenote.net/vm/docker/3781.html

3
1
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?