Skip to content

Commit ec9c7cd

Browse files
brendandburnsderekbekoe
authored andcommitted
[Docs] Move around the order of install instructions. (#1439)
Add mounting of the home directory for the Docker instructions.
1 parent 97fb037 commit ec9c7cd

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ If you already have the CLI installed, run the following to update:
2626
2727
If you don't have the CLI installed, see below.
2828

29-
3029
Install with pip
3130
^^^^^^^^^^^^^^^^
3231

@@ -78,26 +77,6 @@ Use ``pip install requests==2.11.1``.
7877

7978
NOTE: If in a virtual environment, you can simply use ``pip install azure-cli`` and the CLI will be installed into that virtual environment.
8079

81-
Install with interactive install script
82-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83-
84-
For OSX and Linux, you can install using curl:
85-
86-
.. code-block:: console
87-
88-
$ curl -L https://aka.ms/InstallAzureCli | bash
89-
90-
or using wget:
91-
92-
.. code-block:: console
93-
94-
$ wget -q -O - https://aka.ms/InstallAzureCli | bash
95-
96-
Some prerequisites may be required. See our `Preview Install Guide <https://github.com/Azure/azure-cli/blob/master/doc/preview_install_guide.md>`__.
97-
98-
If you run into an ``AttributeError: 'X509' object has no attribute '_x509'`` error, downgrade your version of the requests library from 2.12.1 to 2.11.1.
99-
With the default install location, use ``/usr/local/az/bin/pip install requests==2.11.1``.
100-
10180
Install with apt-get
10281
^^^^^^^^^^^^^^^^^^^^
10382

@@ -120,17 +99,38 @@ See our `Docker tags <https://hub.docker.com/r/azuresdk/azure-cli-python/tags/>`
12099

121100
.. code-block:: console
122101
123-
$ docker run -it azuresdk/azure-cli-python:<version>
102+
$ docker run -v $HOME:/root -it azuresdk/azure-cli-python:<version>
124103
125104
Run the latest automated Docker build with the command below.
126105
All command modules are included in this version as the image is built directly from the Git repository.
127106

128107
.. code-block:: console
129108
130-
$ docker run -it azuresdk/azure-cli-python:latest
109+
$ docker run -v $HOME:/root -it azuresdk/azure-cli-python:latest
131110
132111
For installation steps for common platforms, as well as dependency troubleshooting, please take a look at our `installation guide <http://github.com/Azure/azure-cli/blob/master/doc/preview_install_guide.md>`__.
133112

113+
114+
Install with interactive install script
115+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116+
117+
For OSX and Linux, you can install using curl:
118+
119+
.. code-block:: console
120+
121+
$ curl -L https://aka.ms/InstallAzureCli | bash
122+
123+
or using wget:
124+
125+
.. code-block:: console
126+
127+
$ wget -q -O - https://aka.ms/InstallAzureCli | bash
128+
129+
Some prerequisites may be required. See our `Preview Install Guide <https://github.com/Azure/azure-cli/blob/master/doc/preview_install_guide.md>`__.
130+
131+
If you run into an ``AttributeError: 'X509' object has no attribute '_x509'`` error, downgrade your version of the requests library from 2.12.1 to 2.11.1.
132+
With the default install location, use ``/usr/local/az/bin/pip install requests==2.11.1``.
133+
134134
Usage
135135
=====
136136
.. code-block:: console

0 commit comments

Comments
 (0)