Skip to content

Commit defa9af

Browse files
committed
running container access correction
1 parent 2b539d1 commit defa9af

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,47 +78,47 @@ These continuous integration services will fully test the creation of your conta
7878

7979
## Interacting with containers:
8080

81-
View all running containers:
81+
List all running containers:
8282

83-
`docker ps`
83+
`docker ps`
8484

85-
View all containers (including stopped containers):
85+
List all containers (including stopped containers):
8686

87-
`docker ps -a`
87+
`docker ps -a`
8888

89-
Read the log of a running container:
89+
Read the log of a running container:
9090

91-
`docker logs [container name or id]`
91+
`docker logs [container name or id]`
9292

93-
Follow the log of a running container:
93+
Follow the log of a running container:
9494

95-
`docker logs -f [container name or id]`
95+
`docker logs -f [container name or id]`
9696

97-
Read the Apache log:
97+
Read the Apache log:
9898

99-
`docker exec apache_web_1 cat ./data/apache2/logs/access_log`
99+
`docker exec apache_web_1 cat ./data/apache2/logs/access_log`
100100

101-
Follow the Apache log:
101+
Follow the Apache log:
102102

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`
104104

105-
Follow the outgoing mail log:
105+
Follow the outgoing mail log:
106106

107-
`docker exec apache_web_1 tail -f ./var/log/mail.log`
107+
`docker exec apache_web_1 tail -f ./var/log/mail.log`
108108

109-
Gain terminal access to a running container:
109+
Gain terminal access to a running container:
110110

111-
`docker exec -it [container name or id] sh`
111+
`docker exec -it [container name or id] /bin/bash`
112112

113-
Restart a running container:
113+
Restart a running container:
114114

115-
`docker restart [container name or id]`
115+
`docker restart [container name or id]`
116116

117-
Stop and start a container in separate operations:
117+
Stop and start a container in separate operations:
118118

119-
`docker stop [container name or id]`
119+
`docker stop [container name or id]`
120120

121-
`docker start [container name or id]`
121+
`docker start [container name or id]`
122122

123123
## Teardown
124124
#### (Stop all running containers started by Docker Compose):

0 commit comments

Comments
 (0)