• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
질문

DOCKER watchertower 설정

지나가는_문과생 지나가는_문과생 273 1

0

5

안녕하세요 지나가는 문과생입니다 

 

OS : dsm7.2

빌드 내역

 

version: '3.7'

services:
  watchtower:
    container_name: watchtower
    build:
      context: ./
      dockerfile: dockerfiles/Dockerfile.dev-self-contained
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - 8088:8080
    command: --interval 80 --http-api-metrics --http-api-token demotoken --debug prometheus grafana parent child
  prometheus:
    container_name: prometheus
    image: prom/prometheus
    volumes:
      - ./prometheus/:/etc/prometheus/
      - prometheus:/prometheus/
    ports:
      - 9090:9090
  grafana:
    container_name: grafana
    image: grafana/grafana
    ports:
      - 3000:3000
    environment:
      GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource
    volumes:
      - grafana:/var/lib/grafana
      - ./grafana:/etc/grafana/provisioning
  parent:
    image: nginx
    container_name: parent
  child:
    image: nginx:alpine
    labels:
      com.centurylinklabs.watchtower.depends-on: parent
    container_name: child

volumes:
  prometheus: {}
  grafana: {}
 
 
도커 실행은 되는데.. 업데이트를 하지 않고 있네요
 
로그보시고  조언 부탁드립니다 

 htmlwatchtower
242.37 KB
 

 

신고공유스크랩
5
1등
purndal 2024.04.26. 12:36

저의 docker 코드를 남겨둡니다. 

 

version: "3"
services:
  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      TZ: Asia/Seoul
      WATCHTOWER_LIFECYCLE_HOOKS: "True"
      #WATCHTOWER_NOTIFICATION_TITLE_TAG: Mini PC
      #WATCHTOWER_NOTIFICATIONS: shoutrrr
      #WATCHTOWER_NOTIFICATION_URL: telegram://[코드]@telegram/?channels=[채널숫자]
      WATCHTOWER_DEBUG: "true"
      WATCHTOWER_CLEANUP: "true"
      #WATCHTOWER_POLL_INTERVAL: 86400
      WATCHTOWER_SCHEDULE: 0 0 20 * * 0
    restart: unless-stopped
networks: {}

 

WATCHTOWER_SCHEDULE: 0 0 20 * * 0 

 

이 부분이 스케줄이며.. 매주 토요일인가.. 일요일인가.. 새벽에 업데이트를 하고 있습니다. 

업데이트 후 남겨져 있는 이미지 파일하고 제거를 시켜줍니다. 

 

WATCHTOWER_CLEANUP: "true"

 

제외는 제외 시킬 docker compose 에 

 

    labels:
      - com.centurylinklabs.watchtower.enable=false

 

를 남겨두면 자동으로 업데이트 하지 않더군요.

3등
훔친수건 2024.04.26. 17:47

로그를 보면 정상 작동하고 있습니다.
마지막 체크때 이미지가 모두 최신이라네요.

 

2024/04/26 12:15:06 stderr  time="2024-04-26T03:15:06Z" level=debug msg="No new images found for /parent"
2024/04/26 12:15:08 stderr  time="2024-04-26T03:15:08Z" level=debug msg="No new images found for /prometheus"
2024/04/26 12:15:09 stderr  time="2024-04-26T03:15:09Z" level=debug msg="No new images found for /grafana"
2024/04/26 12:15:10 stderr  time="2024-04-26T03:15:10Z" level=debug msg="No new images found for /child
2024/04/26 12:15:10 stderr  time="2024-04-26T03:15:10Z" level=debug msg="Scheduled next run: 2024-04-26 03:16:25 +0000 UTC" 

 

개인적으로 80초는 너무 잦은 체크가 아닐까 싶네요.

기본값인 24시간이면 충분해 보입니다.

 

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
쓰기
태그 : 도커
번호 분류 제목 글쓴이 날짜 조회 추천
공지 정보 DSM 7.2v) Mshell로 헤놀로지 부트로더 빌드하기. 63 달소 23.05.29.01:57 49646 +25
공지 정보 DSM 7.2v) ARPL-i18n(rr)으로 헤놀로지 부트로더 빌드하기. 74 달소 23.05.23.23:58 50738 +23
잡담 원격지 헤놀로지의 부트로더 업데이트 기능추가 9 화정큐삼 17시간 전21:50 176 +2
가이드 우분투/데비안에서 Active Backup for Business 사용하기 5 kmw_ 3일 전20:03 136 +1
잡담 시놀 active backup 써봤습니다 kmw_ 5일 전15:25 313 +1
27 질문
image
Yukari 2일 전13:26 374 0
질문
file
지나가는_문과생 24.04.26.12:20 273 0
25 질문
image
Noil 24.04.23.23:22 153 0
24 질문
image
서브어린이 24.04.17.12:18 655 0
23 질문
image
서브어린이 24.04.15.23:57 165 0
22 질문
normal
서브어린이 24.04.14.11:06 99 0
21 질문
normal
지나가는_문과생 24.04.13.12:05 268 0
20 질문
image
지나가는_문과생 24.04.13.09:17 179 0
19 질문
image
서브어린이 24.04.12.20:32 124 0
18 질문
image
모랄로 24.04.06.13:53 226 0
17 질문
normal
모랄로 24.04.06.00:40 123 0
16 질문
normal
니즛 24.04.02.15:43 412 0
15 질문
image
시노 24.03.31.23:18 946 0
14 질문
normal
술쉬한보더 24.03.30.12:36 169 0
13 정보
normal
알랑1 24.03.24.16:32 963 +2
12 질문
normal
티이모 24.03.21.01:23 169 0
11 질문
image
말랑말랑 24.03.19.11:29 159 0
10 질문
normal
블랙앤해적 24.03.16.06:43 245 0
9 질문
normal
헤놀로지맨 24.02.26.12:52 340 0
8 후기
normal
헤놀로지맨 24.02.25.22:59 701 0