Skip to content

A local HTTP server for proxying requests to the Docker socket

Notifications You must be signed in to change notification settings

IcyWednesdays/docker-socket-http-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-socket-http-proxy

A local HTTP server for proxying requests to the Docker socket. Useful in scenarios where direct connectivity to Unix sockets is not possible (e.g. frontend clients).

Running locally

To start the HTTP server, clone this repository and run:

$ cargo run

Server listening on http://0.0.0.0:8080

Via Docker

You can also build and run the server in Docker:

$ docker-compose up api

The server will pass through any requests directly to the Docker daemon. You can check out the list of supported endpoints in the Docker documentation.

For example, to query all images on your system:

$ curl -s http://localhost:8080/images/json

To-do

  • Public Docker hub image w/ CI

About

A local HTTP server for proxying requests to the Docker socket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published