ubuntu14.04,安装docker(源代码管理工具)
2015-11-15 18:35
801 查看
一,安装docker:
1,安装curl:在shell中执行:sudo apt-get install curl
2,shell中执行:
3,上面命令执行完毕后,执行提示命令:
二,测试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/
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/
相关文章推荐
- ubuntu14.04,安装docker(源代码管理工具)
- Docker(三):Docker的基本概念
- Dockerize Apache HAWQ [作者:陶征霖]
- Docker(二):Docker的用途
- Docker(一):什么是docker
- 如何免 sudo 使用 docker
- 【翻译】Voidbox: Docker on YARN
- Docker实现Tengine+php-fpm的多容器协作的web应用环境
- Rancher集群化docker管理平台部署、特性及破坏性测试。
- 云时代新秀docker和现有技术的对照(笔记)
- 基于Docker的开发模式驱动持续集成落地实施(脑图学习笔记)
- 使用nsenter进入Docker容器
- Docker:Ubuntu下的安装
- docker 命令整理
- mesos+marathon+zookeeper的docker管理集群亲手搭建实例(详细)
- docker安装sentry
- Docker逐渐火起来了,收集了一些这方面的书
- docker sshd image problem, session required pam_loginuid.so, cann't login
- docker 设置TLS远程访问
- Docker container communication with ovs