How to upgrade Docker using Rancher's install script

Follow
Table of Contents

Task

Rancher provides quick scripts for installing Docker, which are available for the most recent versions of Docker https://rancher.com/docs/rancher/v2.x/en/installation/requirements/installing-docker/ Upgrading Docker on your machine using these scripts is equally as simple

Pre-requisites

  • A supported node with a version of Docker needing to be upgraded
  • Curl or Wget installed

Resolution

Just run the script with the version number you are trying to upgrade to. Let's say you're running 18.09 and want to upgrade to 19.03. Simply provide the version number as the name of the script to run. For example:

curl https://releases.rancher.com/install-docker/19.03.sh | sh

or

wget -O- https://releases.rancher.com/install-docker/19.03.sh | sh

This will throw a warning that Docker is already installed, stop the running Docker engine, and upgrade your version. Note that restarting Docker will also stop any running container or workloads running on this host.

This procedure does not apply to RancherOS

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.