Edited appendix_docker_basics.asciidoc with Atlas code editor

pull/910/head
kristen@oreilly.com 3 years ago
parent 1a371f0efc
commit d557698688

@ -9,7 +9,7 @@ This section will help you install Docker and familiarize yourself with some of
=== Installing Docker
((("Docker","installing")))Before we begin, you should install the Docker container system on your computer. Docker is an open system that is distributed for free as a _Community Edition_ for many different operating systems including Windows, macOS, and Linux. The Windows and Mac versions are called _Docker Desktop_ and consist of a GUI desktop application and command-line tools. The Linux version is called _Docker Engine_ and is comprised of a server daemon and command-line tools. We will be using the command-line tools, which are identical across all platforms.
((("Docker","installing")))Before we begin, you should install the Docker container system on your computer. Docker is an open system that is distributed for free as a _Community Edition_ for many different operating systems including Windows, macOS, and Linux. The Windows and Macintosh versions are called _Docker Desktop_ and consist of a GUI desktop application and command-line tools. The Linux version is called _Docker Engine_ and is comprised of a server daemon and command-line tools. We will be using the command-line tools, which are identical across all platforms.
Go ahead and install Docker for your operating system by following the instructions to "Get Docker" from the https://docs.docker.com/get-docker[Docker website].
@ -62,7 +62,7 @@ This message shows that your installation appears to be working correctly.
==== Stopping and Starting a Container
((("Docker containers","stopping/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:
((("Docker containers","stopping/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:
++++
<pre data-type="programlisting">docker stop <em>cname</em></pre>
@ -90,7 +90,7 @@ To fix this, delete the existing instance of the container:
++__cname__++ is the name assigned to the container (+bitcoind+ in the example error message).
==== List Running Containers
==== Listing Running Containers
----
docker ps
@ -98,7 +98,7 @@ docker ps
((("Docker containers","list running containers")))This command shows the current running containers and their names.
==== List Docker Images
==== Listing Docker Images
----
docker image ls

Loading…
Cancel
Save