您的位置:首页 > 运维架构 > Docker

在ubuntu14上面安装docker

2015-04-18 08:19 405 查看
注意此次是在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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: