docs/language
DJ Adams 5dd725fb4f
add explicit instruction to stop local server (#13235)
* add explicit instruction to stop local server

This relates to the [Test the application section of the Build images tutorial](https://docs.docker.com/language/nodejs/build-images/#test-the-application). 

In this section, `node server.js` is used to start the server locally. The reader is not instructed to stop the server. 

In the [Run containers](https://docs.docker.com/language/nodejs/run-containers/) tutorial that follows this one, the reader is instructed to start up the container, and try to access `http://localhost:8000/test` which is now being served from the Node.js process inside the container. However, if the local Node.js process from the `node server.js` invocation earlier, they won't see the "Failed to connect to localhost port 8000" error which they're supposed to see. 

So this modification adds an explicit instruction to the "Build containers" tutorial to stop the `node server.js` process, to avoid any potential confusion in the "Run containers" tutorial.

Great tutorials, btw!

* show what happens with Ctrl-c

add suggestions from @thaJeztah, plus the same language identifier on the triple-backtick quoted output earlier (`console`).

* Minor styling updates

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-08-09 11:26:37 +01:00
..
golang language/golang: use "console" for shell examples 2021-08-06 17:19:58 +02:00
images Add first half of Getting Started for Golang (#12168) 2021-06-14 13:28:14 +01:00
java language/java: use "console" for shell examples 2021-08-06 17:19:58 +02:00
nodejs add explicit instruction to stop local server (#13235) 2021-08-09 11:26:37 +01:00
python language/python: use "console" for shell examples 2021-08-06 17:20:00 +02:00
index.md Add first half of Getting Started for Golang (#12168) 2021-06-14 13:28:14 +01:00