How to install specific version of Docker on Centos?

前端 未结 5 465
轮回少年
轮回少年 2021-02-06 07:55

I tried to install docker 1.8.2 on Centos7. The docs don\'t tell anything about versioning. Someone who can help me? I tried

wget -qO- https://get.docker.com/ |         


        
5条回答
  •  感情败类
    2021-02-06 08:27

    Docker Installation of specific version

    # yum update
    
    # yum install yum-utils device-mapper-persistent-data lvm2
    
    # yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    
    # yum list docker-ce --showduplicates | sort -r
    
    # yum install docker-ce- 
      OR
    # yum install docker-ce
    (Above command will install latest version of Docker)
    
    # systemctl start docker
    

    Docker Upgradation to specific version

    If you have Docker already installed and you want to upgrade it to specific version, follow below steps:

    # sudo yum list docker-ce --showduplicates | sort -r
    
    # yum install docker-ce-
    
    # systemctl start docker
    

提交回复
热议问题