Skip to content

Commit bb0c09b

Browse files
committed
added more placeholders for content, updated common commands to 1.13
1 parent c6c5ad8 commit bb0c09b

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

developer-tools/java/chapters/appa-common-commands.adoc

+21-22
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,28 @@ Here is the list of commonly used Docker commands:
88
|==================
99
| Purpose| Command
1010
2+^s| Image
11-
| Build an image| `docker build --rm=true .`
12-
| Install an image | `docker pull ${IMAGE}`
13-
| List of installed images | `docker images`
14-
| List of installed images (detailed listing) | `docker images --no-trunc`
15-
| Remove an image | `docker rmi ${IMAGE_ID}`
16-
| Remove all untagged images | `docker rmi $(docker images \| grep “^” \| awk “{print $3}”)`
17-
| Remove all images | `docker rm $(docker ps -aq)`
18-
| Remove dangling images | `docker rmi $(docker images --quiet --filter "dangling=true")`
11+
| Build an image| `docker image build --rm=true .`
12+
| Install an image | `docker image pull ${IMAGE}`
13+
| List of installed images | `docker image ls`
14+
| List of installed images (detailed listing) | `docker image ls --no-trunc`
15+
| Remove an image | `docker image rm ${IMAGE_ID}`
16+
| Remove unused images | `docker image prune`
17+
| Remove all images | `docker image rm $(docker image ls -aq)`
1918
2+^s| Containers
20-
| Run a container | `docker run`
21-
| List of running containers | `docker ps`
22-
| List of all containers | `docker ps -a`
23-
| Stop a container | `docker stop ${CID}`
24-
| Stop all running containers | `docker stop $(docker ps -q)`
25-
| List all exited containers with status 1 | `docker ps -a --filter "exited=1"`
26-
| Remove a container | `docker rm ${CID}`
27-
| Remove container by a regular expression | `docker ps -a \| grep wildfly \| awk '{print $1}' \| xargs docker rm -f`
28-
| Remove all exited containers | `docker rm -f $(docker ps -a \| grep Exit \| awk '{ print $1 }')`
29-
| Remove all containers | `docker rm $(docker ps -aq)`
30-
| Find IP address of the container | `docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}`
31-
| Attach to a container | `docker attach ${CID}`
32-
| Open a shell in to a container | `docker exec -it ${CID} bash`
33-
| Get container id for an image by a regular expression | `docker ps \| grep wildfly \| awk '{print $1}'`
19+
| Run a container | `docker container run`
20+
| List of running containers | `docker container ps`
21+
| List of all containers | `docker container ps -a`
22+
| Stop a container | `docker container stop ${CID}`
23+
| Stop all running containers | `docker container stop $(docker container ps -q)`
24+
| List all exited containers with status 1 | `docker container ps -a --filter "exited=1"`
25+
| Remove a container | `docker container rm ${CID}`
26+
| Remove container by a regular expression | `docker container ps -a \| grep wildfly \| awk '{print $1}' \| xargs docker container rm -f`
27+
| Remove all exited containers | `docker container rm -f $(docker container ps -a \| grep Exit \| awk '{ print $1 }')`
28+
| Remove all containers | `docker container rm $(docker container ps -aq)`
29+
| Find IP address of the container | `docker container inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}`
30+
| Attach to a container | `docker container attach ${CID}`
31+
| Open a shell in to a container | `docker container exec -it ${CID} bash`
32+
| Get container id for an image by a regular expression | `docker container ps \| grep wildfly \| awk '{print $1}'`
3433
|==================
3534

3635
=== Exit code status

developer-tools/java/readme.adoc

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ This tutorial offers Java developers an intro-level and self-paced hands-on work
66
* link:chapters/ch02-basic-concepts.adoc[Docker Basic Concepts]
77
* link:chapters/ch03-build-image.adoc[Build a Docker Image]
88
* link:chapters/ch04-run-container.adoc[Run a Docker Container]
9-
* link:chapters/ch05-compose.adoc[Run Multiple Containers Using Docker Compose]
10-
* link:chapters/ch06-swarm.adoc[Run Multiple Containers on Multiple Hosts using Docker Swarm Cluster]
9+
* link:chapters/ch05-compose.adoc[Mult-container Application Using Compose]
10+
* link:chapters/ch06-swarm.adoc[Multi-container Using Compose and Swarm Mode]
1111
* Java IDEs
1212
** link:chapters/ch07-netbeans.adoc[Docker Tooling in NetBeans]
1313
** link:chapters/ch07-intellij.adoc[Docker Tooling in IntelliJ IDEA]
1414
** link:chapters/ch07-eclipse.adoc[Docker Tooling in Eclipse]
15-
* link:chapters/ch08-cloud.adoc[Run a Docker Container using Docker Cloud]
15+
* Docker in Cloud
16+
** link:chapters/ch08-cloud.adoc[Docker Cloud]
17+
** Docker for AWS (coming)
18+
** Docker for Azure (coming)
19+
* CI/CD using Docker (coming)
20+
* Monitoring Java container using Docker (coming)
21+
**
1622
* link:chapters/appa-common-commands.adoc[Common Docker Commands]
1723
* link:chapters/appb-troubleshooting.adoc[Troubleshooting]
1824
* link:chapters/appc-references.adoc[References]

0 commit comments

Comments
 (0)