• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

Ktranslate 컨테이너 버전 관리

문제

가이드 설치에서 제공하는 기본 Docker 명령은 시작할 때마다 최신 릴리스로 업데이트합니다. 이전 릴리스를 실행하거나 환경을 특정 버전에 고정하려는 다양한 시나리오가 있습니다.

해결책

Docker Hub에서 컨테이너의 이전 릴리스를 찾을 수 있습니다.

동일한 컨테이너 이미지가 여러 태그에서 사용 가능할 수 있습니다. 예를 들어 최신 안정 릴리스는 v2latest 태그에서도 사용할 수 있습니다.

실행할 릴리스를 제어하려면 다음 docker run 예를 사용하십시오.

bash
$
docker run -d --name ktranslate-SNMP --restart unless-stopped --pull=always -p 162:1620/udp \
>
-v `pwd`/snmp-base.yaml:/snmp-base.yaml \
>
-e NEW_RELIC_API_KEY=$YOUR_LICENSE_KEY \
>
kentik/ktranslate:v2 \
>
-snmp /snmp-base.yaml \
>
-nr_account_id=$YOUR_ACCOUNT_ID \
>
-metrics=jchf \
>
-tee_logs=true \
>
-service_name=SNMP \
>
-snmp_discovery_on_start=true \
>
-snmp_discovery_min=180 \
>
nr1.snmp

--pull=always ) 제거하고 컨테이너 태그를 v2 에서 사용하려는 릴리스 태그로 변경합니다. 결과는 다음과 같습니다.

bash
$
docker run -d --name ktranslate-SNMP --restart unless-stopped -p 162:1620/udp \
>
-v `pwd`/snmp-base.yaml:/snmp-base.yaml \
>
-e NEW_RELIC_API_KEY=$YOUR_LICENSE_KEY \
>
kentik/ktranslate:kt-2023-02-28-4294815650 \
>
-snmp /snmp-base.yaml \
>
-nr_account_id=$YOUR_ACCOUNT_ID \
>
-metrics=jchf \
>
-tee_logs=true \
>
-service_name=SNMP \
>
-snmp_discovery_on_start=true \
>
-snmp_discovery_min=180 \
>
nr1.snmp
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.