Portainer with AWS ecr support (Taken from portainer/portainer#1533 (comment))
This repo adds httpd server to expose docker pull api
Execute
docker-compose build
Note:
- Set
REGISTORY_URL
env variable to have this url succeeded bytag
when calling the api - Set
DOCKER_PULL_PORT
env variable to use a different port for docker pull api - Server configs (eg auth, ip filtering etc) are picked up from httpd.conf
Execute
docker-compose up
Note:
- Default port is set to 80, should be changed to
$DOCKER_PULL_PORT
if defined
Docker pull API url http://0.0.0.0/cgi-bin/docker_pull.sh
Pass tag
query param containing image url or tag
Note:
- The constructed tag is
${REGISTORY_URL}${tag}
- The API endpoint is http so it is recommended that it is hosted behind a private network
httpd
is prone toDDOS
attack
- For feature request or bugs create github issues here