Public | Automated Build

Last pushed: 24 days ago
Short Description
Alpine-based docker image for curl with http2 support.
Full Description

curl-http2

This repository contains a Dockerfile for curl with http2 support.

See the repo on Docker Hub.

Installation

$ git clone https://github.com/badouralix/dockerfiles.git
$ cd dockerfiles/curl-http2/<BASE_IMAGE>
$ docker build -t $USER-local/curl-http2:<BASE_IMAGE> .

Usage

$ docker run -t --rm badouralix/curl-http2 -I https://nghttp2.org/

HTTP/2 200
date: Wed, 12 Apr 2017 00:26:57 GMT
content-type: text/html
last-modified: Sun, 09 Apr 2017 13:25:12 GMT
etag: "58ea3638-19ff"
accept-ranges: bytes
content-length: 6655
x-backend-header-rtt: 0.001404
strict-transport-security: max-age=31536000
server: nghttpx
via: 2 nghttpx
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff

Tips and tricks

In your shell rc dotfile, you could add an alias 'curl-http2'='docker run -t --rm badouralix/curl-http2'
so that you would just have to run :

$ curl-http2 -I https://nghttp2.org/

Tags

All images are built with nghttp2 v1.21.1 and curl 7.53.1.

  • latest, alpine : image based on alpine:3.5
  • debian : image based on debian:jessie

Versions, protocols and features

Alpine

curl 7.53.1 (x86_64-unknown-linux-gnu) libcurl/7.53.1 OpenSSL/1.0.2k zlib/1.2.8 nghttp2/1.21.1
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy

Debian

curl 7.53.1 (x86_64-unknown-linux-gnu) libcurl/7.53.1 OpenSSL/1.0.1t zlib/1.2.8 libpsl/0.5.1 (+libicu/52.1) libssh2/1.4.3 nghttp2/1.21.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

License

Unless explicitly stated to the contrary, all contents licensed under the WTFPL.

Docker Pull Command
Owner
badouralix
Source Repository

Comments (0)