Added start docker command

Also removed the redundant information.
pull/619/head
keblek 3 years ago committed by GitHub
parent 88f822a3c7
commit 924e253d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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*

Loading…
Cancel
Save