From 924e253d665fcd92524b327d7eca544bce836692 Mon Sep 17 00:00:00 2001 From: keblek <68111648+keblek@users.noreply.github.com> Date: Mon, 1 Feb 2021 15:24:34 +0100 Subject: [PATCH] Added start docker command Also removed the redundant information. --- node_client.asciidoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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*