I have CentOS 7 server with docker-ce-18.06.1.ce-3.el7.x86_64 install. now I want to upgrade to latest docker rpm. but yum upgrade docker-ce not showing the latest package. Any help to fix this issue?

not listing the latest rpm

yum list docker-ce --show-duplicates
Loaded plugins: copr, fastestmirror, rhnplugin 
Installed Packages
docker-ce.x86_64                                                                      18.06.1.ce-3.el7                                                                       @docker-ce-stable

all repo is enabled

# yum repolist
Loaded plugins: copr, fastestmirror

repo id                                                                              repo name                                                                                       status
base/7/x86_64                                                                        CentOS-7 - Base                                                                                 10,060+10
docker-ce-stable/x86_64                                                              Docker CE Stable - x86_64                                                                           12+67
epel/x86_64                                                                          Extra Packages for Enterprise Linux 7 - x86_64                                                   13,335+1
extras/7/x86_64                                                                      CentOS-7 - Extras                                                                                  356+41
google-chrome                                                                        google-chrome                                                                                           3
group_spacewalkproject-nightly-client/x86_64                                         Copr repo for nightly-client owned by @spacewalkproject                                             59+21
nodesource/x86_64                                                                    Node.js Packages for Enterprise Linux 7 - x86_64                                                       97
updates/7/x86_64                                                                     CentOS-7 - Updates                                                                                 831+30
yarn                                                                                 Yarn Repository                                                                                        50
repolist: 24,803

This command returning any packages yum --disablerepo=* --enablerepo=docker-ce-stable upgrade

adding the repo details

name=Docker CE Stable - $basearch
  • Not knowing the status of docker-ce in Centos 7 myself, what evidence do you have that there's something newer out there that you're not seeing? – Jeff Schaller Jun 25 at 14:38
  • By the way, you mention that "all repos are enabled" followed immediately by a command that disables all repos and enables a single one. – Jeff Schaller Jun 25 at 14:38
  • latest docker-ce package is docker-ce-19.03.8-3.el7.x86_64. I have installed it on another server. – sfgroups Jun 25 at 14:50
  • Did you catch which repo it came from? Disabling all your repos seems an unusual step to take if you're trying to install a package. Alternatively, the site/mirror you're hitting just hasn't been sync'd yet? – Jeff Schaller Jun 25 at 14:54
  • its coming fro docker repo. site is working. I was able install it in another server. – sfgroups Jun 25 at 15:05

I found /etc/yum.conf file had exclude list for docker package. I used this command to install the package

yum --disablerepo=* --enablerepo=docker-ce-stable upgrade --disableexcludes=all docker-ce


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.