安装docker --linux

https://docs.docker.com/engine/installation/linux/centos/

curl -fsSL https://test.docker.com/ | sh

Install with the script

  1. Log into your machine as a user with sudo or root privileges.

  2. Make sure your existing packages are up-to-date.

    $ sudo yum update
    
  3. Run the Docker installation script.

    $ curl -fsSL https://get.docker.com/ | sh
    

    This script adds the docker.repo repository and installs Docker.

  4. Enable the service.

    $ sudo systemctl enable docker.service
    
  5. Start the Docker daemon.

    $ sudo systemctl start docker
    
  6. Verify docker is installed correctly by running a test image in a container.

    $ sudo docker run hello-world
    

问题1:

解决办法:需要启动下docker的服务

$ sudo systemctl enable docker.service
$ sudo systemctl start docker

posted @ 2016-10-08 18:54  禾米  阅读(169)  评论(0编辑  收藏  举报