/ 代码 / 3 浏览

Debian安装Docker

这几天在部署Nodebb,折腾了两天,各种问题都遇到过,今天分享一下Debian下如何方便的安装Docker

通过apt安装

没有意外,在root用户下。

先更新 apt 包列表:

apt-get update

安装HTTP依赖:

Debian 8 / Debian 9 :

apt install apt-transport-https ca-certificates curl gnupg2 lsb-release software-properties-common

Debian 7 :

apt install apt-transport-https ca-certificates curl lsb-release python-software-properties

配置Docker存储库密钥:

服务器如果在国内:

curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable"

服务器如果在国外:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"

更新 apt 软件包缓存:

apt-get update

最后安装Docker-ce

apt-get install docker-ce
maofun
做一个网盘搜索引擎
做一个网盘搜索引擎
OpenAI正在调查关于真实的人物的虚假,有害的陈述
Cloudflare Warp 官方客户端自选接入点IP的方法
ssh无需密码登陆(使用密钥对)
开源:ChatGPT连续对话Python Web版,docker部署,在线更新Token
开源:ChatGPT连续对话Python Web版,docker部署,在线更新Token
Cloudflare Workers部署在线剪切板pastebin-worker
Cloudflare Workers部署在线剪切板pastebin-worker

0 条评论

  1. no comments.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注