@@ -25,7 +25,9 @@ You can mount repositories in the `/mnt/sendgrid-python` and `/mnt/python-http-c
2525
2626The easiest way to use an old version is to use an old tag.
2727
28- $ docker run -it sendgrid/sendgrid-python:v3.6.1
28+ ``` sh-session
29+ $ docker run -it sendgrid/sendgrid-python:v3.6.1
30+ ```
2931
3032Tags from before this Docker image was created might not exist yet. You may [ manually download] ( #Versions ) old versions in order to use them.
3133
@@ -36,29 +38,35 @@ To use a different version of sendgrid-python or python-http-client - for instan
3638
3739For instance, to install sendgrid-python 3.6.1 and use the current python-http-client:
3840
39- $ git clone https://github.com/sendgrid/sendgrid-python.git --branch v3.6.1
40- $ realpath sendgrid-python
41- /path/to/sendgrid-python
42- $ docker run -it -v /path/to/sendgrid-python:/mnt/sendgrid-python sendgrid/sendgrid-python
41+ ``` sh-session
42+ $ git clone https://github.com/sendgrid/sendgrid-python.git --branch v3.6.1
43+ $ realpath sendgrid-python
44+ /path/to/sendgrid-python
45+ $ docker run -it -v /path/to/sendgrid-python:/mnt/sendgrid-python sendgrid/sendgrid-python
46+ ```
4347
4448To install sendgrid-python v3.6.1 and use an older version of python-http-client:
4549
46- $ git clone https://github.com/sendgrid/sendgrid-python.git --branch v3.6.1
47- $ realpath sendgrid-python
48- /path/to/sendgrid-python
49- $ git clone https://github.com/sendgrid/python-http-client.git --branch v1.2.4
50- $ realpath python-http-client
51- /path/to/python-http-client
52- $ docker run -it -v /path/to/sendgrid-python:/mnt/sendgrid-python \
53- -v /path/to/python-http-client:/mnt/python-http-client \
54- sendgrid/sendgrid-python
50+ ``` sh-session
51+ $ git clone https://github.com/sendgrid/sendgrid-python.git --branch v3.6.1
52+ $ realpath sendgrid-python
53+ /path/to/sendgrid-python
54+ $ git clone https://github.com/sendgrid/python-http-client.git --branch v1.2.4
55+ $ realpath python-http-client
56+ /path/to/python-http-client
57+ $ docker run -it -v /path/to/sendgrid-python:/mnt/sendgrid-python \
58+ > -v /path/to/python-http-client:/mnt/python-http-client \
59+ > sendgrid/sendgrid-python
60+ ```
5561
5662## Specifying your own fork:
5763
58- $ git clone https://github.com/you/cool-sendgrid-python.git
59- $ realpath cool-sendgrid-python
60- /path/to/cool-sendgrid-python
61- $ docker run -it -v /path/to/cool-sendgrid-python:/mnt/sendgrid-python sendgrid/sendgrid-python
64+ ``` sh-session
65+ $ git clone https://github.com/you/cool-sendgrid-python.git
66+ $ realpath cool-sendgrid-python
67+ /path/to/cool-sendgrid-python
68+ $ docker run -it -v /path/to/cool-sendgrid-python:/mnt/sendgrid-python sendgrid/sendgrid-python
69+ ```
6270
6371Note that the paths you specify in ` -v ` must be absolute.
6472
0 commit comments