版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

推荐镜像部署


安装docker

注意docker国内需要更换源

以Centos为例Centos

代码块
yum -y update
yum remove docker docker-common docker-selinux docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum -y install docker-ce.x86_64
systemctl start docker
systemctl enable docker

...

Ubuntu

代码块
apt-get update
apt-get remove docker docker-engine docker.io containerd runc
apt-getinstall apt-transport-https ca-certificates curl software-properties-common gnupg lsb-release
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt install docker-ce docker-ce-cli containerd.io
systemctl start docker
systemctl enable docker



下载omc的镜像包omc.tar,导入为镜像

代码块
docker import omc.tar omc:latest

...