Skip to content

Portainer image with AWS ecr support and docker pull API

Notifications You must be signed in to change notification settings

mek97/portainer-ecr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

portainer-ecr

Portainer with AWS ecr support (Taken from portainer/portainer#1533 (comment))

This repo adds httpd server to expose docker pull api

Build

Execute

docker-compose build

Note:

  • Set REGISTORY_URL env variable to have this url succeeded by tag 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

Run

Execute

docker-compose up

Note:

  • Default port is set to 80, should be changed to $DOCKER_PULL_PORT if defined

Usage

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}

Caveats

  • The API endpoint is http so it is recommended that it is hosted behind a private network
  • httpd is prone to DDOS attack

Contribution

  • For feature request or bugs create github issues here

About

Portainer image with AWS ecr support and docker pull API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published