mirror of https://github.com/docker/docs.git
Merge pull request #12563 from longqua69/patch-3
doc: clarify the description of NodeJS guides
This commit is contained in:
commit
3d615063b8
|
|
@ -26,7 +26,7 @@ $ docker run node-docker
|
||||||
|
|
||||||
When you run this command, you’ll notice that you were not returned to the command prompt. This is because our application is a REST server and will run in a loop waiting for incoming requests without return control back to the OS until we stop the container.
|
When you run this command, you’ll notice that you were not returned to the command prompt. This is because our application is a REST server and will run in a loop waiting for incoming requests without return control back to the OS until we stop the container.
|
||||||
|
|
||||||
Let’s make a GET request to the server using the curl command.
|
Let’s open a new terminal then make a GET request to the server using the curl command.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ curl --request POST \
|
$ curl --request POST \
|
||||||
|
|
@ -50,7 +50,7 @@ Start the container and expose port 8000 to port 8000 on the host.
|
||||||
$ docker run --publish 8000:8000 node-docker
|
$ docker run --publish 8000:8000 node-docker
|
||||||
```
|
```
|
||||||
|
|
||||||
Now let’s rerun the curl command from above.
|
Now let’s rerun the curl command from above. Remember to open a new terminal.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ curl --request POST \
|
$ curl --request POST \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue