Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jojow/docker-api-proxy
Proxy for accessing Docker daemon's remote API
https://github.com/jojow/docker-api-proxy
Last synced: 5 days ago
JSON representation
Proxy for accessing Docker daemon's remote API
- Host: GitHub
- URL: https://github.com/jojow/docker-api-proxy
- Owner: jojow
- License: mit
- Created: 2015-08-20T10:19:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T13:55:54.000Z (over 8 years ago)
- Last Synced: 2024-08-01T12:33:41.775Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - jojow/docker-api-proxy - Proxy for accessing Docker daemon's remote API (others)
README
# docker-api-proxy
Proxy for accessing Docker daemon's remote API. By default, the API proxy blocks all requests that can run containers and commands that are not covered by the stored images and their predefined commands. However, you can easily customize the filter logic by adapting the lib/filter.js file.
Tested against Docker Remote API v1.24 and Docker 1.12.
Configure Docker daemon to listen on a port on localhost (e.g., /etc/default/docker on Ubuntu):
DOCKER_OPTS="-H tcp://127.0.0.1:2374 -H unix:///var/run/docker.sock"
Prepare the host using curl (may require root access):
curl -L https://raw.github.com/jojow/docker-api-proxy/master/prepare.sh | bash
Or using wget:
wget -qO- https://raw.github.com/jojow/docker-api-proxy/master/prepare.sh | bash
Install using curl:
curl -L https://raw.github.com/jojow/docker-api-proxy/master/install.sh | bash
By default, everything gets installed to $HOME/docker-api-proxy, so you can run it from there:
cd $HOME/docker-api-proxy
./run.shYou can also set certain environment variables to configure the API proxy:
export PROXY_PORT=2375
export TARGET_URL=http://127.0.0.1:2374
./run.sh## Contributors
* Michael Hahn
* Johannes Wettinger