标签:
docker-compose命令
$
提示符。
bash
环境,而不是标准的Windows命令行。该 bash
环境是Docker需要的。$
附近点击下鼠标来激活该命令行环境.$
。你可以在command
line那里输入命令行。你的鼠标脚垫会以
|
显示。输入命令后回车来执行该命令。docker
run hello-world
然后回车。$ docker run hello-world
Unable to find image ‘hello-world:latest‘ locally
Pulling repository hello-world
91c95931e552: Download complete
a8219747be10: Download complete
Status: Downloaded newer image for hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker Engine CLI client contacted the Docker Engine daemon.
2. The Docker Engine daemon pulled the "hello-world" image from the Docker Hub.
(Assuming it was not already locally available.)
3. The Docker Engine daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker Engine daemon streamed that output to the Docker Engine CLI client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
For more examples and ideas, visit:
https://docs.docker.com/userguide/
标签:
原文地址:http://blog.csdn.net/lilychen1983/article/details/51025564