Kubernetes

Docker version Downgrade

아르비스 2021. 1. 25. 15:15

Docker 버전 내리기

 최신 버전의 Docker에서 K8s의 호완성 문제게 발생한 경우 Downgrade를 진행함.

 

버전확인

# docker version

 

 

*  Docker 삭제

sudo apt-get remove docker docker-engine docker.io containerd runc

위 명령어로 삭제 후 재설치 할 수 있으나 ..  이번엔 Downgrade 하는 방향으로..

 

설치가능  Docker 버전 확인

# apt-cache madison docker-ce

apt-cache madison docker-ce
 docker-ce | 5:20.10.2~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.1~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.0~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.14~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.13~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.12~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.11~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.10~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.9~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages

여기서는 '5:19.03.14~3-0~ubuntu-focal' 버전을 설치 해보려고함.

 

sudo apt-get update && sudo apt-get install -y   containerd.io=1.2.13-2   docker-ce=5:19.03.14~3-0~ubuntu-$(lsb_release -cs)   docker-ce-cli=5:19.03.14~3-0~ubuntu-$(lsb_release -cs) --allow-downgrades

 

설치버전 확인

# docker version

Client: Docker Engine - Community
 Version:           19.03.14
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        5eb3275d40
 Built:             Tue Dec  1 19:20:26 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.14
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       5eb3275d40
  Built:            Tue Dec  1 19:18:53 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683