Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

安装和启动

这个写很好: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:

  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.

配置 linux-postinstall

  • boot自启动:On Debian and Ubuntu, the Docker service is configured to start on boot by default.
  • 配置非root docker run

评论