q456123 发表于 2015-10-13 11:02:42

在ubuntu14上面安装docker

  注意此次是在ubuntu14上面安装的,如果是别的老版本可能需要安装一些依赖,具体看文:
  http://docs.docker.com/installation/ubuntulinux/

  

  Installing Docker on Ubuntu


Make sure you have intalled the prerequisites for your Ubuntu version. Then, install Docker using the following:


    Log into your Ubuntu installation as a user with sudo privileges.


    Verify that you have wget installed.


    $ which wget


    If wget isn't installed, install it after updating your manager:


    $ sudo apt-get update $ sudo apt-get install wget


    Get the latest Docker package.


    $ wget -qO- https://get.docker.com/ | sh


  The system prompts you for your sudo password. Then, it downloads and installs Docker and its dependencies.
  

  then start the docker service:
  var/run/docker will be created when you start the docker service:


sudo service docker start


if your system does not have upstart:


sudo /etc/init.d/docker start



    Verify docker is installed correctly.


    $ sudo docker run hello-world


  This command downloads a test image and runs it in a container.
  

  

  

  

  

  

         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: 在ubuntu14上面安装docker