docker run -it --rm -v "$PWD:/root" -w /root/examples python:3.4.4 bash -c "python -V; git log -n 1; python example2.py"
Python 3.4.4
commit 717ad40e114cfe63fa366465643ecb9f16ea6df9
Author: Jeroen Van Steirteghem <[email protected]>
Date: Thu May 28 11:24:13 2015 +0200
0.4.0
2016-03-30 09:37:03.091000 - INFO - request: HEAD / HTTP/1.1
Host: www.google.com
2016-03-30 09:37:08.161000 - INFO - request: HEAD / HTTP/1.1
Host: www.google.com
2016-03-30 09:37:08.189000 - INFO - response: HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: https://www.google.ru/?gfe_rd=cr&ei=RJ77VvDWCseEygXngqHgCQ
Content-Length: 259
Date: Wed, 30 Mar 2016 09:37:08 GM
$ docker run -it --rm -v "$PWD:/root" -w /root/examples python:3.5.1 bash -c "python -V; git log -n 1; python example2.py"
Python 3.5.1
commit 717ad40e114cfe63fa366465643ecb9f16ea6df9
Author: Jeroen Van Steirteghem <[email protected]>
Date: Thu May 28 11:24:13 2015 +0200
0.4.0
2016-03-30 09:31:58.027000 - INFO - request: HEAD / HTTP/1.1
Host: www.google.com
2016-03-30 09:32:03.144000 - INFO - request: HEAD / HTTP/1.1
Host: www.google.com
Fatal write error on socket transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f244c975550>
transport: <_SelectorSocketTransport fd=8 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/asyncio/selector_events.py", line 702, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor