datphan310 / watchtower-ecr

🐳 A Docker image based on v2tec/watchtower for use with AWS ECR.

Home Page:https://hub.docker.com/r/rabaco/watchtower-ecr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WatchTower ECR

A docker image based on v2tec/watchtower for use with AWS ECR.

Docker Pulls Docker Stars

Usage

Run the container with the following command:

docker run -d \
  --name watchtower \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /path/to/docker-config.json:/config.json \
  -e "AWS_ACCESS_KEY_ID=<ACCESS_KEY_ID>" \
  -e "AWS_SECRET_ACCESS_KEY=<SECRET_ACCESS_KEY>" \
  rabaco/watchtower-ecr:latest --interval 45 --cleanup

If you prefer, you can use the docker-compose.yml

version: '3.2'
services:
  my-service:
    image: <id>.dkr.ecr.<region>.amazonaws.com/my-image:latest
  watchtower:
    image: rabaco/watchtower-ecr:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /path/to/docker-config.json:/config.json
    environment:
      AWS_ACCESS_KEY_ID: <ACCESS_KEY_ID>
      AWS_SECRET_ACCESS_KEY: <SECRET_ACCESS_KEY>
    command: --interval 45 --cleanup

About

🐳 A Docker image based on v2tec/watchtower for use with AWS ECR.

https://hub.docker.com/r/rabaco/watchtower-ecr/

License:MIT License


Languages

Language:Dockerfile 100.0%