cenos7 docker安装

  • 环境:
    • cenos7(X86_64) + openssh
    • 安装工具yum
  • 安装

    1 检查更新

     sudo yum check-update
    

    2 安装依赖包

    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    

    3 增加docker repo地址

    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    

    4 安装docker

    sudo yum install docker
    

    5 启动docker服务查看状态

    sudo systemctl start docker
    

    开机启动

    sudo systemctl enable docker
    

    查看状态

    sudo systemctl status docker0
    

参考及引用

https://phoenixnap.com/kb/how-to-install-docker-centos-7
Photo by Steve Johnson from Pexels

Comments are closed.