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

ubuntu14.04,安装docker(源代码管理工具)

2015-11-15 18:35 801 查看
一,安装docker:

1,安装curl:在shell中执行:sudo apt-get install curl

2,shell中执行:
curl
-
sSL https:
/
/
get.daocloud.io
/
docker | sh


3,上面命令执行完毕后,执行提示命令:
sudo usermod
-
aG docker sunylat(注意:提示上面名字应该是你当前登入用户名,不要用我的!)


二,测试docker:上面两个命令执行完毕,docker应该按照完毕了,但是我们需要启动docker服务。

1,shell中执行:sudo service docker start

2,执行测试:sudo docker run hello-world

对于上面命令官方解释执行过程是这样:This command downloads a test image and runs it in a container. When the container runs, it prints an informational message. Then, it exits.

执行上面命令后,会下载一个测试的image,随后在docker里面执行,打印一个信息,随后退出。我执行上面命令确实也是这样,如果测试结果是这样,那docker确实搞定了!!

参考资料:

http://www.arthurtoday.com/2014/08/ubuntu-quickly-install-lastest-docker.html

http://www.fantansy.cn/index.php/linux/263.html

官方文档:

https://docs.docker.com/engine/installation/ubuntulinux/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: