Skip to content

Commit 4572104

Browse files
arun-guptarafabene
authored andcommitted
cleaned up some chapter titles
1 parent fdfb616 commit 4572104

4 files changed

Lines changed: 48 additions & 51 deletions

File tree

chapters/docker-container.adoc

Lines changed: 45 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,51 @@ docker stop mywildfly-mapped-ports
252252
.Welcome WildFly
253253
image::images/plain-wildfly1.png[]
254254

255+
### Stop Container
256+
257+
. Stop a specific container:
258+
+
259+
[source, text]
260+
----
261+
docker stop <CONTAINER ID>
262+
----
263+
+
264+
. Stop all the running containers
265+
+
266+
[source, text]
267+
----
268+
docker stop $(docker ps -q)
269+
----
270+
+
271+
. Stop only the exited containers
272+
+
273+
[source, text]
274+
----
275+
docker ps -a -f "exited=-1"
276+
----
277+
278+
### Remove Container
279+
280+
. Remove a specific container:
281+
+
282+
[source, text]
283+
----
284+
docker rm 0bc123a8ece0
285+
----
286+
+
287+
. Remove containers meeting a regular expression
288+
+
289+
[source, text]
290+
----
291+
docker ps -a | grep wildfly | awk '{print $1}' | xargs docker rm
292+
----
293+
+
294+
. Remove all containers, without any criteria
295+
+
296+
[source, text]
297+
----
298+
docker rm $(docker ps -aq)
299+
----
255300
[[Enabling_WildFly_Administration]]
256301
### Enabling WildFly Administration
257302

@@ -359,51 +404,3 @@ In this case, Docker port mapping will be shown as:
359404
8080/tcp -> 0.0.0.0:8080
360405
9990/tcp -> 0.0.0.0:9990
361406
----
362-
363-
### Stop and Remove Container
364-
365-
#### Stop Container
366-
367-
. Stop a specific container:
368-
+
369-
[source, text]
370-
----
371-
docker stop <CONTAINER ID>
372-
----
373-
+
374-
. Stop all the running containers
375-
+
376-
[source, text]
377-
----
378-
docker stop `docker ps -aq`
379-
----
380-
+
381-
. Stop only the exited containers
382-
+
383-
[source, text]
384-
----
385-
docker ps -a -f "exited=-1"
386-
----
387-
388-
#### Remove Container
389-
390-
. Remove a specific container:
391-
+
392-
[source, text]
393-
----
394-
docker rm 0bc123a8ece0
395-
----
396-
+
397-
. Remove containers meeting a regular expression
398-
+
399-
[source, text]
400-
----
401-
docker ps -a | grep wildfly | awk '{print $1}' | xargs docker rm
402-
----
403-
+
404-
. Remove all containers, without any criteria
405-
+
406-
[source, text]
407-
----
408-
docker rm `docker ps -aq`
409-
----

chapters/docker-image.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
== Docker Image
1+
== Build an Image
22

33
*PURPOSE*: This chapter explains how to create a Docker image.
44

chapters/docker-kubernetes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Java Application on Kubernetes Cluster
1+
## Deploy Application on Kubernetes Cluster
22

33
[quote, github.com/GoogleCloudPlatform/kubernetes/]
44
Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

chapters/docker-swarm.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[[Docker_Swarm]]
2-
## Java EE Application on Docker Swarm Cluster
2+
## Deploy Application on Docker Swarm Cluster
33

44
Docker Swarm is native clustering for Docker. It allows you create and access to a pool of Docker hosts using the full suite of Docker tools. Because Docker Swarm serves the standard Docker API, any tool that already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts
55

0 commit comments

Comments
 (0)