Skip to content

Latest commit

 

History

History
82 lines (62 loc) · 2.29 KB

20200614.md

File metadata and controls

82 lines (62 loc) · 2.29 KB
layout title tag
post
vm + ubuntu20.04 + docker + cn
linux docker

准备vm 及 系统相关

vm tools 复制

sudo apt-get autoremove open-vm-tools
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop

系统设置消失

sudo apt-get install --reinstall gnome-control-center
sudo pkill Xorg

docker 安装

国内 阿里源配置

sudo gedit /etc/apt/sources.list

替换,注意看版本代号,Ubuntu20.04 为 Focal Fossa

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

# 阿里源
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal stable
deb-src [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal stable
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

这一步注意出现版本依赖问题,注意手动指定版本

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo apt-get install docker-ce docker-ce-cli containerd.io

镜像加速

阿里云加速器

容器镜像服务