VPS参考测评推荐
专注分享VPS主机优惠信息
衡天云优惠活动
华纳云最新优惠促销活动
jtti最新优惠促销活动

如何在linux中安装docker(如何在Linux中安装wget)

locvps
主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情!
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作

如何在linux中安装docker(如何在Linux中安装wget)

如何在Linux上安装Docker

步骤1:检查先决条件

Linux内核版本3.10以上,至少2GB内存,稳定的互联网连接第二步:安装Docker依赖项。

Ubuntu/Debian:

& lt代码& gtsudo apt-get更新sudo apt-get安装apt-transport-https ca-certificates curl GnuPG-agent software-properties-common & lt;/code & gt;CentOS/Red Hat:

& lt代码& gtsudo yum install -y yum-utils设备映射器持久数据lvm2 & lt/code & gt;第三步:添加Docker官方仓库。

Ubuntu/Debian:

& lt代码& gtsudo curl-fsSL https://下载。& lta style = & quot颜色:# f60文本装饰:下划线;"href = & quothttps://m.php.cn/zt/15865.html" target = & quot;_ blank & quot& gtdocker & lt/a & gt;。com/& lt;a style = & quot颜色:# f60文本装饰:下划线;"href = & quothttps://m.php.cn/zt/15718.html" target = & quot;_ blank & quot& gtlinux & lt/a & gt;/Ubuntu/gpg | sudo apt-key add-sudo add-apt-repository & quot;deb[arch = amd64]https://download.docker.com/linux/ubuntu $(LSB _ release-cs)稳定& quot& lt/code & gt;CentOS/Red Hat:

& lt代码& gtsudo yum-config-manager-add-repo https://download.docker.com/linux/<颜色:# f60文本装饰:下划线;"href = & quothttps://m.php.cn/zt/15739.html" target = & quot;_ blank & quot& gtcentos & lt/a & gt;/docker-ce . repo & lt;/code & gt;第四步:安装Docker

Ubuntu/Debian:

& lt代码& gtsudo apt-get更新sudo apt-get安装docker-ce & lt;/code & gt;CentOS/Red Hat:

& lt代码& gtsudo yum安装docker-ce & lt;/code & gt;第五步:启动Docker。

Ubuntu/Debian:

& lt代码& gtsudo systemctl start docker & lt/code & gt;CentOS/Red Hat:

& lt代码& gtsudo systemctl start docker & lt/code & gt;步骤6:验证安装

运行以下命令检查Docker是否已成功安装:

& lt代码& gtdocker run hello-world & lt;/code & gt;如果您看到类似以下内容的输出,说明Docker已经成功安装:

& lt代码& gtDocker的你好!此消息表明您的安装似乎工作正常。& lt/code & gt;

这几篇文章你可能也喜欢:

本文由主机参考刊发,转载请注明:如何在linux中安装docker(如何在Linux中安装wget) https://zhujicankao.com/121392.html

【腾讯云】领8888元采购礼包,抢爆款云服务器 每月 9元起,个人开发者加享折上折!
打赏
转载请注明原文链接:主机参考 » 如何在linux中安装docker(如何在Linux中安装wget)
主机参考仅做资料收集,不对商家任何信息及交易做信用担保,购买前请注意风险,有交易纠纷请自行解决!请查阅:特别声明

评论 抢沙发

评论前必须登录!