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. (amd64) 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 bash
Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/
For more examples and ideas, visit: https://docs.docker.com/get-started/
Options: -a, --all Show all containers (default shows just running) -f, --filter filter Filter output based on conditions provided --format string Pretty-print containers using a Go template -n, --last int Show n last created containers (includes all states) (default -1) -l, --latest Show the latest created container (includes all states) --no-trunc Don't truncate output -q, --quiet Only display container IDs -s, --size Display total file sizes [root@template logstash]#
启动已停止运行的容器
查看所有的容器命令如下:
1 2 3 4 5
[root@template logstash]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 32ee4dd688b7 8652b9f0cb4c "/bin/bash" 4 minutes ago Exited (0) 45 seconds ago quirky_cartwright 93a7a66ddc4b hello-world "/hello" 22 minutes ago Exited (0) 22 minutes ago flamboyant_hamilton ee564fc969ae ubuntu:15.10 "/bin/echo 'Hello wo…" 25 minutes ago Exited (0) 25 minutes ago trusting_payne