|
|
环境准备好了,马上运行第一个容器,执行如下命令:6 b4 e2 y% D# Q* z$ c
docker run -d -p 80:80 httpd
" q" C# r5 I' P6 v
- e* @. \% ?; W- U! P' A运行结果如下过程:
2 Z. `* E2 d+ AUnable to find image 'httpd:latest' locally
o$ t; r' i6 a6 J- F/ L: U4 a0 ulatest: Pulling from library/httpd
/ y/ a/ S1 k4 W$ F, T4176fe04cefe: Pull complete
3 Q1 V9 M7 q) q- b* r" Fd6c01cf91b98: Pull complete 2 F" b4 d3 x5 n e
b7066921647a: Pull complete
7 R" o# r; ] d3 w% |643378aaba88: Pull complete
+ b Z& D: R e4 v8 w3c51f6dc6a3b: Pull complete
: J; C5 P, I, S4f25e420c4cc: Pull complete - U( i" O T% }1 i" Y7 n$ b
ccdbe37da15c: Pull complete & O) K& b* L" I9 `
Digest: sha256:5a73586de6429d7ffbf8de990c82a0027c676eb1e438bbe7f9307d2cf285ee37( z5 v2 y% f4 s* v
Status: Downloaded newer image for httpd:latest
0 s7 \+ s$ W5 g- y# D r2da567ec704b670b041b1eb0195c0312d29732baee2e6e06b3645d1f28f0f720
9 R% ~2 d8 c. t7 F2 X1 H |
|