build

Usage: build [options] [SERVICE...]

Options:
--force-rm  Always remove intermediate containers.
--no-cache  Do not use cache when building the image.
--pull      Always attempt to pull a newer version of the image.

サービスは project_サービス として構築時にタグ付けられます。例: composetest_db 。サービスの Dockerfile や構築痔レクトリの内容に変更を加える場合は、 docker-compose build で再構築を実行します。