https://github.com/luizeof/docker-engine-api-wrapper
Docker Engine API with Basic Authentication
https://github.com/luizeof/docker-engine-api-wrapper
Last synced: 2 months ago
JSON representation
Docker Engine API with Basic Authentication
- Host: GitHub
- URL: https://github.com/luizeof/docker-engine-api-wrapper
- Owner: luizeof
- License: gpl-3.0
- Created: 2020-01-18T05:46:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-25T17:46:37.000Z (over 6 years ago)
- Last Synced: 2025-12-29T18:14:08.372Z (6 months ago)
- Language: PHP
- Homepage: https://hub.docker.com/r/luizeof/docker-engine-api
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-engine-api
[](https://microbadger.com/images/luizeof/docker-engine-api "Get your own version badge on microbadger.com") [](https://microbadger.com/images/luizeof/docker-engine-api "Get your own image badge on microbadger.com")
Docker Engine API Wrapper with Basic Authentication
[https://hub.docker.com/r/luizeof/docker-engine-api](https://hub.docker.com/r/luizeof/docker-engine-api)
---
To access the Docker Engine API over HTTP with Basic Authentication, just run this container:
```yaml
docker_engine_api:
container_name: docker_engine_api
image: luizeof/docker-engine-api
privileged: true
environment:
- AUTHUSER=myuser
- AUTHPWD=mypwd
ports:
- "8099:80"
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
```
## Environments
There are 2 variables that you need to configure:
`AUTHUSER`:
The username for basic authentication.
`AUTHPWD`:
The password for basic authentication.
## Usage
```bash
curl --location --request GET 'http://SERVERIP:8099/containers/json' \
--header 'Authorization: Basic bJHVpcdmVvfgps5rdTfx'
```