works fine for me:
HTTP/1.1 200 OK
x-amz-id-2: 8o/zPdNrJfNMpuXRFnBdZ9j9XNjIuHmRfXs6QSXQzUAIRIF0tzV0vFxDM9K79nq/4EUeZvE50Uo=
x-amz-request-id: 03C3E409231E664B
x-amz-replication-status: PENDING
Last-Modified: Thu, 06 Oct 2016 11:18:04 GMT
ETag: "ff3fd06717ad77ff7937370a11d83f13"
Cache-Control: max-age=31536000
x-amz-meta-surrogate-key: full-index
x-amz-version-id: .zlY0JJinFEBkTdoFBS.BoA3ygUwbIJT
Server: AmazonS3
Fastly-Restarts: 1
Content-Length: 2996066
Accept-Ranges: bytes
Date: Thu, 06 Oct 2016 11:20:12 GMT
Via: 1.1 varnish
Age: 125
Connection: keep-alive
X-Served-By: cache-jfk8136-JFK
X-Cache: HIT
X-Cache-Hits: 9
X-Timer: S1475752812.155713,VS0,VE0
Vary: Fastly-SSL
Content-Type: application/octet-stream
$ docker run -it --rm ruby:2.1 gem install rails
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: minitest-5.9.1.gem (100%)
Successfully installed minitest-5.9.1
Fetching: concurrent-ruby-1.0.2.gem (100%)
Successfully installed concurrent-ruby-1.0.2
Fetching: activesupport-5.0.0.1.gem (100%)
ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
(last error is unrelated)