From 2dfaf2c4e4d86f5253f65cc8ab8f858152a30ad9 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 20 Jan 2017 13:59:29 +0100 Subject: [PATCH] Add yum-utils to installation instructions The yum-utils package is not installed by default on some cloud providers, causing the `yum-config-manager --add-repo` step to fail. Signed-off-by: Sebastiaan van Stijn --- engine/installation/linux/centos.md | 10 ++++++++-- engine/installation/linux/rhel.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/engine/installation/linux/centos.md b/engine/installation/linux/centos.md index 02829684dae..6f814cf0762 100644 --- a/engine/installation/linux/centos.md +++ b/engine/installation/linux/centos.md @@ -54,7 +54,13 @@ Docker from the repository. #### Set up the repository -1. Use the following command to set up the **stable** repository: +1. Install `yum-utils`, which provides the `yum-config-manager` utility: + + ```bash + $ sudo yum install -y yum-utils + ``` + +2. Use the following command to set up the **stable** repository: ```bash $ sudo yum-config-manager \ @@ -62,7 +68,7 @@ Docker from the repository. https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo ``` -2. **Optional**: Enable the **testing** repository. This repository is included +3. **Optional**: Enable the **testing** repository. This repository is included in the `docker.repo` file above but is disabled by default. You can enable it alongside the stable repository. Do not use unstable repositories on on production systems or for non-testing workloads. diff --git a/engine/installation/linux/rhel.md b/engine/installation/linux/rhel.md index 5acf558d5e5..f680c66c068 100644 --- a/engine/installation/linux/rhel.md +++ b/engine/installation/linux/rhel.md @@ -55,7 +55,13 @@ Docker from the repository. #### Set up the repository -1. Use the following command to set up the **stable** repository: +1. Install `yum-utils`, which provides the `yum-config-manager` utility: + + ```bash + $ sudo yum install -y yum-utils + ``` + +2. Use the following command to set up the **stable** repository: ```bash $ sudo yum-config-manager \ @@ -65,7 +71,7 @@ Docker from the repository. > **Note**: The link above is correct for RHEL as well as CentOS. -2. **Optional**: Enable the **testing** repository. This repository is included +3. **Optional**: Enable the **testing** repository. This repository is included in the `docker.repo` file above but is disabled by default. You can enable it alongside the stable repository. Do not use unstable repositories on on production systems or for non-testing workloads.