Docker Compose Commands
docker compose –help
gives you a list of commands you can feed the docker compose command.
docker compose build
The Build command instructs docker to look for a file called compose.yml and build the containers defined in the file.
docker compose down
The Down command instructs docker to look for a file called compose.yml and stop the containers.
docker compose ps
PS to see what is currently running
docker compose rm
remove the containers defined in config.yml
docker compose stop
stop the containers defined in config.yml
docker compose up
The Up command instructs docker to look for a file called compose.yaml and build a set of containers using that script. Then start those containers.
- -d - is used to run those images detached (or in the background) you will get no UI