Skip to content

Docker container to expose the docker API and restrict access via IP rules

License

Notifications You must be signed in to change notification settings

ScienceLogic/docker-api-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-api-nginx

Docker image to expose the docker API remotely via nginx. Adds ipallow rules in nginx to lock the API down to specific hosts that can connect

Use

To start the API with the rules wide open:

docker run -d -v /var/run/docker.sock:/var/run/docker.sock --restart=always -p 2375:80 repository.auto.sciencelogic.local:5000/docker-api-nginx

To start the API only allowing specific hosts to connect:

docker run -d -v /var/run/docker.sock:/var/run/docker.sock --restart=always -p 2375:80 -e "IPALLOW=10.2.252.211,10.2.252.212,10.2.252.213" repository.auto.sciencelogic.local:5000/docker-api-nginx

About

Docker container to expose the docker API and restrict access via IP rules

Resources

License

Stars

Watchers

Forks

Packages

No packages published