目录
Mint安装Docker教程
/      

Mint安装Docker教程

安装docker

来自:https://www.cnblogs.com/yddzyy/p/13298409.html

sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

上面可以参照官方安装步骤:https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/接下里就是遇到的问题

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

通过“lsb_release -cs”查询结果是tricia

https://www.linuxmint.com/download_all.php中确认ubuntu的版本(Bionic)

因此上面的执行内容替换为下面的命令

因此上面的执行内容替换为下面的命令

sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    bionic \
    stable"

剩下的按照步骤执行即可

sudo apt-get update
sudo apt-get install docker-ce

临时使用代理

export http_proxy=http://127.0.0.1:1234

允许普通用户使用docker

将当前登录用户加入到docker用户中。

sudo gpasswd -a $USER docker

更新用戶組

newgrp docker

标题:Mint安装Docker教程
作者:gitsilence
地址:https://blog.lacknb.cn/articles/2020/12/20/1608435076756.html