How to install specific version of Docker on Centos?

前端 未结 5 462
轮回少年
轮回少年 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:08

    An update for Brittany's Answer As of Apr 2018 the package has been renamed to "docker-ce" (and docker-ee respectively if you're using docker enterprise version), so the commands are now:

    check versions:

    sudo yum list docker-ce.x86_64 --showduplicates | sort -r
    

    install specific version:

    sudo yum install docker-ce-
    

    Or if you already installed the latest version, use downgrade:

    sudo yum downgrade docker-ce-
    

提交回复
热议问题