国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Web服務器 > 正文

ubuntu16.10安裝docker17.03.0-ce并配置國內源和加速器

2024-09-01 13:51:45
字體:
來源:轉載
供稿:網友

說明:這個針對docker-ce安裝,ce和ee的區別是前者是社區版,后者是企業版

1.  配置Ubuntu的源,不然慢的去哭吧。參考https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 注意版本要對應。我的源配置見附件

2. 安裝docker,按照官方教程https://docs.docker.com/engine/installation/linux/ubuntu/

環境依賴

$ sudo apt-get update$ sudo apt-get install /linux-image-extra-$(uname -r) /linux-image-extra-virtual

安裝docker包

$ sudo apt-get install /apt-transport-https /ca-certificates /curl /software-properties-common 

添加docker官方GPG秘鑰

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

安裝穩定版倉庫

sudo add-apt-repository / "deb [arch=amd64] https://download.docker.com/linux/ubuntu / $(lsb_release -cs) /stable"

再次更新源

sudo apt-get update

安裝docker-ce

sudo apt-get install docker-ce

3. 給docker添加國內加速器(參考https://github.com/yeasy/docker_practice/blob/master/install/mirror.md)

在阿里云申請一個賬號,打開連接https://cr.console.aliyun.com/#/accelerator 拷貝您的專屬加速器地址,然后/etc/systemd/system/multi-user.target.wants/docker.service 文件,找到 ExecStart= 這一行,在這行最后添加加速器地址 --registry-mirror=<加速器地址>

如:ExecStart=/usr/bin/dockerd --registry-mirror=https://jxus37ad.mirror.aliyuncs.com

注:對于 1.12 以前的版本,dockerd 換成 docker daemon

重新加載配置并且重新啟動

$ sudo systemctl daemon-reload$ sudo systemctl restart docker

至此docker安裝及國內加速器都好了,開始你的docker之旅吧。

hello-word

 $ sudo docker run hello-world

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持VEVB武林網。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 延庆县| 通城县| 若尔盖县| 博客| 桂平市| 信阳市| 台南市| 微山县| 府谷县| 阿克苏市| 修文县| 郁南县| 永川市| 高雄县| 冀州市| 永德县| 湖北省| 彝良县| 安龙县| 安丘市| 阳曲县| 察隅县| 常宁市| 涿州市| 鱼台县| 崇文区| 南木林县| 龙江县| 丰顺县| 克拉玛依市| 定边县| 延川县| 康定县| 昆明市| 四川省| 兴国县| 万山特区| 东台市| 萨嘎县| 疏附县| 喀喇沁旗|