Skip to content

chorrell/docker-httpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'