From 3d02d92db0b6c2eaee966baf35a464a8af214a1d Mon Sep 17 00:00:00 2001 From: logan Date: Wed, 1 Jan 2020 12:40:51 +0800 Subject: [PATCH] remove old first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 运行此命令表明user明确知道docker 在本机无法使用, 需要清除old version --- docker_install_centos.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docker_install_centos.sh b/docker_install_centos.sh index c43814ed..fb06e252 100755 --- a/docker_install_centos.sh +++ b/docker_install_centos.sh @@ -14,6 +14,17 @@ function checkSudo (){ checkSudo +# rm old or flawed installation first +yum remove docker \ + docker-client \ + docker-client-latest \ + docker-common \ + docker-latest \ + docker-latest-logrotate \ + docker-logrotate \ + docker-engine + + ## something required system utils yum install -y yum-utils device-mapper-persistent-data lvm2