howie6879 / howie6879.github.io

努力就好
https://www.howie6879.com/
9 stars 0 forks source link

1.Docker - 初使用 #83

Open howie6879 opened 3 years ago

howie6879 commented 3 years ago

https://www.howie6879.cn/p/1.docker-%E5%88%9D%E4%BD%BF%E7%94%A8/

自己很少使用Docker,也没有机会使用,毕业开始工作后,进的公司使用Docker进行部署,这是我的一些笔记,以便翻阅。 1.准备 系统:ubuntu16.04 or centos … 1.1.安装 1.1.1.ubuntu16.04 首先安装依赖包,在终端输入: sudo apt-get update sudo apt-get install apt-transport-https ca-certificates 安装Docker,自动安装脚本提供了非常简洁的安装方式:

官方下载方式 curl -sSL https://get.docker.com/ | sh # 镜像站会提升下载速度 # 阿里云的安装脚本 curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh - # DaoCloud 的安装脚本 curl -sSL https://get.daocloud.io/docker | sh 安装完成后,输入sudo service docker status 可见Docker已经启动:

● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: active (running) since 二 2017-08-15 15:34:46 CST; 26min ago Docs: https://docs.