Provisioning commands
By having a Compose application file set up, we can now provision the application. The commands we will use are the following:
build
create
up
Let’s take a look at them.
build
As seen previously, we do not need to build a Docker image and tag it manually before using it on Compose. Compose can build the image and use it for the application.
Issuing the build
command creates the image:
$ docker compose build => => exporting layers 0.0s ... => => naming to docker.io/library/chapter4_task manager 0.0s $ docker images ...