Sign inSign up

cbwchuck/watchtower-ecr

By cbwchuck

•Updated about 2 years ago

https://github.com/cbwchuck/watchtower-ecr

Image
Integration & delivery
Developer tools
0

991

cbwchuck/watchtower-ecr repository overview

⁠Watchtower ECR

This repo is inspired by heyarny/watchtower-ecr⁠.

This docker image is based on containrrr/watchtower⁠ for use with AWS ECR.

⁠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>" \
  cbwchuck/watchtower-ecr:latest --interval 30 --cleanup

If you prefer, you can use the docker-compose.yml, an example looks like this

services:
  my-service:
    image: <id>.dkr.ecr.<region>.amazonaws.com/my-image:latest
  watchtower:
    image: cbwchuck/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 30 --cleanup

Tag summary

Content type

Image

Digest

sha256:841be48ff…

Size

14.3 MB

Last updated

about 2 years ago

docker pull cbwchuck/watchtower-ecr