How to upgrade Docker using Rancher's install script

This document (000020170) is provided subject to the disclaimer at the end of this document.

Situation

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

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020170
  • Creation Date: 13-Jul-2021
  • Modified Date:13-Jul-2021
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center