【小白教程】Debian国内安装Docker教程

一、Debian安装Docker 1.更新并安装一些必要系统工具。


sudo apt-get update

sudo apt-get upgrade

sudo apt-get install \\
	apt-transport-https \\
	software-properties-common \\
    ca-certificates \\
    curl \\
    gnupg \\
    lsb-release

2.安装GPG证书。

curl -fsSL <https://mirrors.aliyun.com/docker-ce/linux/debian/gpg> | apt-key add -

3.写入软件源信息。

add-apt-repository "deb [arch=amd64] <https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian> $(lsb_release -cs) stable"

4.更新并安装社区版Docker-ce

sudo apt-get update

sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

二、配置开机自启

1.开机自启

sudo systemctl enable docker

2.启动

sudo systemctl start docker

4 个赞

感谢教程

感谢教程

2 个赞

不错,感谢佬友分享!