当前位置:   article > 正文

Apple M1 Macos通过UTM安装的OracleLinux9里面安装Docker_docker 安装utm

docker 安装utm

Apple M1 Macos通过UTM安装的OracleLinux9里面安装Docker

  1. 切换到root用户
sudo su -
  • 1
  1. 切换到/tmp目录
cd /tmp
  • 1
  1. 下载docker-ce安装包及依赖包(2022.09.23时点最新版)
wget https://download.docker.com/linux/centos/9/aarch64/stable/Packages/containerd.io-1.6.8-3.1.el9.aarch64.rpm
wget https://download.docker.com/linux/centos/9/aarch64/stable/Packages/docker-ce-20.10.18-3.el9.aarch64.rpm
wget https://download.docker.com/linux/centos/9/aarch64/stable/Packages/docker-ce-cli-20.10.18-3.el9.aarch64.rpm
wget https://download.docker.com/linux/centos/9/aarch64/stable/Packages/docker-ce-rootless-extras-20.10.18-3.el9.aarch64.rpm
wget https://download.docker.com/linux/centos/9/aarch64/stable/Packages/docker-scan-plugin-0.17.0-3.el9.aarch64.rpm
wget https://download.docker.com/linux/centos/9/aarch64/stable/Packages/docker-compose-plugin-2.6.0-3.el9.aarch64.rpm
wget https://github.com/Mirantis/cri-dockerd/releases/download/v0.2.5/cri-dockerd-0.2.5.arm64.tgz
tar zxvf cri-dockerd-0.2.5.arm64.tgz
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  1. 安装docker-ce
sudo dfn remove -y runc
sudo dnf localinstall -y *.rpm
  • 1
  • 2
  1. 确认docker版本
sudo docker -v
  • 1
  1. 启动docker并且设置开机自动启动
sudo systemctl enable --now docker
  • 1
  1. 确认docker信息
docker info
  • 1
  1. 如果想让非root用户使用,比如opc,执行下面命令
sudo usermod -a -G docker opc
  • 1
  1. 切换到opc用户
su - opc
  • 1
  1. 用opc用户确认
whoami
  • 1
docker info
  • 1

完结!

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号