Docker:尝试篇

JerryXia 发表于 , 阅读 (17)

输出信息:(我是安装成功后写的文档,所以会有一些多余的内容,初次使用应该不会出现。另:无形中暴露了自己的机器信息……)

Containers: 12Images: 25Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 49 Dirperm1 Supported: falseExecution Driver: native-0.2Kernel Version: 3.13.0-32-genericOperating System: Ubuntu 14.04.1 LTSCPUs: 8Total Memory: 7.362 GiBName: prairieID: RID2:KUDU:ZGN7:S2EC:WMHQ:4OK2:7MUU:J4WZ:X35Z:YJW2:A3CF:F22XUsername: ××××××Registry: [https://index.docker.io/v1/]WARNING: No swap limit support

运行一个例子

sudo docker run hello-world

输出结果:

注意其中的This message shows that your installation appears to be working correctly. 证明docker安装成功了。

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 client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.    (Assuming it was not already locally available.) 3. The Docker daemon created a new container from that image which runs the    executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it    to your terminal.To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bashFor more examples and ideas, visit: http://docs.docker.com/userguide/