Give sudo access to local environment variable (#4660)

This commit is contained in:
Misty Stanley-Jones 2017-09-18 15:39:21 -07:00 committed by GitHub
parent 1a0c6c1e3d
commit 4641ccfc6b
1 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,7 @@ You can install Docker EE in different ways, depending on your needs:
This command relies on the variable you stored in the previous step.
```bash
$ sudo sh -c 'echo "$DOCKERURL/{{ linux-dist-url-slug }}" > /etc/yum/vars/dockerurl'
$ sudo -E sh -c 'echo "$DOCKERURL/{{ linux-dist-url-slug }}" > /etc/yum/vars/dockerurl'
```
{% if linux-dist == "rhel" %}
@ -78,6 +78,10 @@ You can install Docker EE in different ways, depending on your needs:
should use `7`, but you can also use the more specific minor version,
starting from `7.2`.
```bash
$ sudo sh -c 'echo "7" > /etc/yum/vars/dockerosversion'
```
{% endif %}
4. Install required packages. `yum-utils` provides the `yum-config-manager`
@ -119,7 +123,7 @@ You can install Docker EE in different ways, depending on your needs:
6. Use the following command to add the **stable** repository:
```bash
$ sudo yum-config-manager \
$ sudo -E yum-config-manager \
--add-repo \
"$DOCKERURL/{{ linux-dist-url-slug }}/docker-ee.repo"
```