Sign inSign up

luizeof/docker-engine-api

By luizeof

Updated over 6 years ago

Docker Engine API with Basic Authentication

Image
1

10K+

luizeof/docker-engine-api repository overview

docker-engine-api

Dockerhub Dockerhub

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

Environments

There are 2 variables that you need to configure:

AUTHUSER:

The username for basic authentication.

AUTHPWD:

The password for basic authentication.

Usage

curl --location --request GET 'http://SERVERIP:8099/containers/json' \
--header 'Authorization: Basic bJHVpcdmVvfgps5rdTfx'

Tag summary

Content type

Image

Digest

Size

154 MB

Last updated

over 6 years ago

docker pull luizeof/docker-engine-api