He said on a combination of content: Installation Well now Docker
Installed with the necessary thing, so go ahead a Hello World
docker run ubuntu:15.10 /bin/echo "hello world"
docker run means: generates a container
ubuntu: 15.10 represent a mirror image is loaded Ubuntu linux mirror
/ Bin / echo "hello world" represents the command to be executed inside the container can be seen that this is a standard output statement echo xxx
Background mode -d parameter
Here small chestnut code fragment running a while loop, each print mode is added -d Background Sleep one second
docker run -d ubuntu:15.10 /bin/sh -c "while true; do echo hello world; sleep 1; done"
It returns a long string that represents the ID of the container
See the current status of docker
docker ps
Why do we not see the cycle printed hello world it
Container ID docker logs
Here is the real log
Stop the container
Container ID docker stop