Sign inSign up

chorrell/http

By chorrell

•Updated 26 days ago

A docker image for httpie

Image
0

1.7K

chorrell/http repository overview

⁠docker-http

Docker

A docker image for httpie⁠

⁠Usage with Docker run

Use this Docker image from the command line in the same way you would with httpie⁠.

First build the image:

docker build -t http .

Now use the image to call http with docker run -it --rm http:

Run http without arguments:

docker run -it --rm http

Usage:

docker run -it --rm http --help

Version info:

docker run -it --rm http --version

Inspect headers:

docker run -it --rm http --headers https://horrell.ca

⁠Make it easier with an alias

Add this to your .bashrc or .zshrc file:

alias http='docker run -i --rm http'

⁠Using the Docker Hub image

The lateset version of this image is published to the Docker Hub. You can use it like this:

docker pull chorrell/http:latest

docker run -i --rm chorrell/http:latest

And setup an alias like this:

alias http='docker run -i --rm ghcr.io/chorrell/http:latest'

⁠Using the GitHub Container Registry image

The lateset version of this image is published to the GitHub Container Registry. You can use it like this:

docker pull ghcr.io/chorrell/http:latest

docker run -i --rm ghcr.io/chorrell/http:latest

And setup an alias like this:

alias http='docker run -i --rm ghcr.io/chorrell/http:latest'

Tag summary

Content type

Image

Digest

sha256:577361315…

Size

30.6 MB

Last updated

26 days ago

docker pull chorrell/http