bug fixed: correct the docker-compose command.

rename command name from `docker compose` to `docker-compose`.

Signed-off-by: Mark <40328786+MarkShen1992@users.noreply.github.com>
This commit is contained in:
Mark 2023-01-05 21:54:19 +08:00 committed by GitHub
parent 6f15838d24
commit 20e3e4c434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ port 80 of the host as specified in the compose file.
## Deploy with docker compose
```
$ docker compose up -d
$ docker-compose up -d
Creating network "wordpress-mysql_default" with the default driver
Creating volume "wordpress-mysql_db_data" with default driver
...
@ -63,10 +63,10 @@ Navigate to `http://localhost:80` in your web browser to access WordPress.
Stop and remove the containers
```
$ docker compose down
$ docker-compose down
```
To remove all WordPress data, delete the named volumes by passing the `-v` parameter:
```
$ docker compose down -v
$ docker-compose down -v
```