Docker Engine API with Basic Authentication
10K+
Docker Engine API Wrapper with Basic Authentication
https://hub.docker.com/r/luizeof/docker-engine-api
To access the Docker Engine API over HTTP with Basic Authentication, just run this container:
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
There are 2 variables that you need to configure:
AUTHUSER:
The username for basic authentication.
AUTHPWD:
The password for basic authentication.
curl --location --request GET 'http://SERVERIP:8099/containers/json' \
--header 'Authorization: Basic bJHVpcdmVvfgps5rdTfx'
Content type
Image
Digest
Size
154 MB
Last updated
over 6 years ago
docker pull luizeof/docker-engine-api