前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >简单3步,docker跑起来

简单3步,docker跑起来

作者头像
大数据和云计算技术
发布2018-03-08 11:36:44
7730
发布2018-03-08 11:36:44
举报

docker使用起来真是简单,只需要简单的几步,一个程序就能跑起来。

第一步,从docker官网上下载DockerToolbox-1.8.1c.pkg到本地,然后一路next就把程序装好。(后台会给你装好几个程序, 如virtualBox虚拟机,docker部署工具docker machine等。

第二步, 如下,找到docker terminal,打开,就进入来docker的控制台:

第三步, 输入命令 docker run hello-world,docker会自动从docker hub上把程序下载下来,然后运行起来,最后输出结果。最后docker还会解释下这个过程中进行了那几步。

Hello from Docker.

This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:

1. The Docker client contacted the Docker daemon.

2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

3. The Docker daemon created a new container from that image which runs the

executable that produces the output you are currently reading.

4. The Docker daemon streamed that output to the Docker client, which sent it

to your terminal.

To try something more ambitious, you can run an Ubuntu container with:

$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker Hub account:

https://hub.docker.com

For more examples and ideas, visit:

https://docs.docker.com/userguide/

总结:

docker运行部署程序真是太简单了,simple is the best!

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2015-09-03,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 大数据和云计算技术 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档