mirror of https://github.com/docker/docs.git
fixes "Command 'docker-compose' not found" error.
This commit fixes the error thrown due to a typo in the command docker-compose -f docker-compose.dev.yml up --build. The correct command is docker compose -f docker-compose.dev.yml up --build without the hyphen between 'docker' and 'compose' in the command sequence.
This commit is contained in:
parent
e565f1ca51
commit
f85256ee43
|
@ -40,7 +40,7 @@ describe('Array', function() {
|
||||||
Let’s build our Docker image and confirm everything is running properly. Run the following command to build and run your Docker image in a container.
|
Let’s build our Docker image and confirm everything is running properly. Run the following command to build and run your Docker image in a container.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker-compose -f docker-compose.dev.yml up --build
|
$ docker compose -f docker-compose.dev.yml up --build
|
||||||
```
|
```
|
||||||
|
|
||||||
Now let’s test our application by POSTing a JSON payload and then make an HTTP GET request to make sure our JSON was saved correctly.
|
Now let’s test our application by POSTing a JSON payload and then make an HTTP GET request to make sure our JSON was saved correctly.
|
||||||
|
@ -86,7 +86,7 @@ Okay, now that we know our application is running properly, let’s try and run
|
||||||
Below is the Docker command to start the container and run tests:
|
Below is the Docker command to start the container and run tests:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker-compose -f docker-compose.dev.yml run notes npm run test
|
$ docker compose -f docker-compose.dev.yml run notes npm run test
|
||||||
Creating node-docker_notes_run ...
|
Creating node-docker_notes_run ...
|
||||||
|
|
||||||
> node-docker@1.0.0 test /code
|
> node-docker@1.0.0 test /code
|
||||||
|
|
Loading…
Reference in New Issue