安装和启动
这个写很好:Install Docker Engine on Ubuntu
在上述教程install之后docker run hello-word之前可能需要启动docker后台服务:sudo service docker start
how would you know that the service name was docker
: You can see them using service --status-all
docker原理
To generate this message, Docker took the following steps:
- The Docker client contacted the Docker daemon.
- The Docker daemon pulled the “hello-world” image from the Docker Hub.(amd64)
- The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
- The Docker daemon streamed that output to the Docker client, which sent it to your terminal.
配置 linux-postinstall
- boot自启动:On Debian and Ubuntu, the Docker service is configured to start on boot by default.
- 配置非root docker run