diff --git a/node_client.asciidoc b/node_client.asciidoc index 8ab9336..6926bf8 100644 --- a/node_client.asciidoc +++ b/node_client.asciidoc @@ -161,7 +161,7 @@ docker exec cname command ...where +cname+ is the name we gave the container in the +run+ command, and +command+ is an executable or script that we want to run inside the container. -*Stopping a container* +*Stopping and starting a container* In most cases, if we are running a container in an _interactive_ as well as _terminal_ mode, i.e. with the +i+ and +t+ flags (combined as +-it+) set, the container can be stopped by simply pressing +CTRL-C+ or by exiting the shell with +exit+ or +CTRL-D+. If a container does not terminate, you can stop it from another terminal like this: @@ -169,7 +169,11 @@ In most cases, if we are running a container in an _interactive_ as well as _ter docker stop cname ---- -...where +cname+ is the name we gave the container when we ran it. +To resume an already existing container use the `start` command, like so: + +---- +docker start cname +---- *Deleting a container by name*