@@ -155,7 +155,7 @@ This file defines all of the containers and settings you need to launch your set
155
155
## Terminology
156
156
157
157
- ` docker-compose.yml ` The YAML file where all your configuration of your docker containers go.
158
- - ` docker- compose ` The cli tool that enables you to define and run multi-container applications with Docker
158
+ - ` docker compose ` The cli tool that enables you to define and run multi-container applications with Docker
159
159
160
160
- ` up ` : creates and starts the services stated in the compose file
161
161
- ` down ` : stops and removes containers, networks, images, and volumes
@@ -237,7 +237,7 @@ MYSQL_ROOT_PASSWORD=wordpress
237
237
Try to spin up the container in detached mode :
238
238
239
239
` ` ` bash
240
- docker- compose up -d
240
+ docker compose up -d
241
241
Creating network "multicontainer_default" with the default driver
242
242
Creating multicontainer_mysql_container_1 ...
243
243
Creating multicontainer_mysql_container_1 ... done
@@ -247,9 +247,9 @@ Looking at the output you can see that it made a `docker network` named `multico
247
247
248
248
Issue a `docker container ls` as well as `docker network ls` to see that both the container and network are listed.
249
249
250
- To shut down the container and network, issue a `docker- compose down`
250
+ To shut down the container and network, issue a `docker compose down`
251
251
252
- > **note**: The command docker- compose down removes the containers and default network.
252
+ > **note**: The command docker compose down removes the containers and default network.
253
253
254
254
# ## Creating the wordpress container
255
255
@@ -265,6 +265,6 @@ You must
265
265
- map the pieces of information from the docker container run command to the yaml format.
266
266
- remove MySQL port mapping to close that from outside reach.
267
267
268
- When you made that, run `docker- compose up -d` and access your wordpress site from [http://IP:8080](http://IP:8080)
268
+ When you made that, run `docker compose up -d` and access your wordpress site from [http://IP:8080](http://IP:8080)
269
269
270
270
> **Hint**: If you are stuck, look at the file docker-compose_final.yaml in the same folder.
0 commit comments