在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.







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值