@@ -78,47 +78,47 @@ These continuous integration services will fully test the creation of your conta
78
78
79
79
## Interacting with containers:
80
80
81
- View all running containers:
81
+ List all running containers:
82
82
83
- ` docker ps `
83
+ ` docker ps `
84
84
85
- View all containers (including stopped containers):
85
+ List all containers (including stopped containers):
86
86
87
- ` docker ps -a `
87
+ ` docker ps -a `
88
88
89
- Read the log of a running container:
89
+ Read the log of a running container:
90
90
91
- ` docker logs [container name or id] `
91
+ ` docker logs [container name or id] `
92
92
93
- Follow the log of a running container:
93
+ Follow the log of a running container:
94
94
95
- ` docker logs -f [container name or id] `
95
+ ` docker logs -f [container name or id] `
96
96
97
- Read the Apache log:
97
+ Read the Apache log:
98
98
99
- ` docker exec apache_web_1 cat ./data/apache2/logs/access_log `
99
+ ` docker exec apache_web_1 cat ./data/apache2/logs/access_log `
100
100
101
- Follow the Apache log:
101
+ Follow the Apache log:
102
102
103
- ` docker exec apache_web_1 tail -f ./data/apache2/logs/access_log `
103
+ ` docker exec apache_web_1 tail -f ./data/apache2/logs/access_log `
104
104
105
- Follow the outgoing mail log:
105
+ Follow the outgoing mail log:
106
106
107
- ` docker exec apache_web_1 tail -f ./var/log/mail.log `
107
+ ` docker exec apache_web_1 tail -f ./var/log/mail.log `
108
108
109
- Gain terminal access to a running container:
109
+ Gain terminal access to a running container:
110
110
111
- ` docker exec -it [container name or id] sh `
111
+ ` docker exec -it [container name or id] /bin/bash `
112
112
113
- Restart a running container:
113
+ Restart a running container:
114
114
115
- ` docker restart [container name or id] `
115
+ ` docker restart [container name or id] `
116
116
117
- Stop and start a container in separate operations:
117
+ Stop and start a container in separate operations:
118
118
119
- ` docker stop [container name or id] `
119
+ ` docker stop [container name or id] `
120
120
121
- ` docker start [container name or id] `
121
+ ` docker start [container name or id] `
122
122
123
123
## Teardown
124
124
#### (Stop all running containers started by Docker Compose):
0 commit comments