• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

Managing KTranslate container versions

Problem

The default Docker commands given by the guided installation will update you to the latest release every time you start. There's a variety of scenarios where you might want to run an older release, or pin your environment to a specific version.

Solution

You can find older releases of the container on Docker Hub.

The same container image may be available under several tags. For example, the newest stable release is available from the v2 and also latest tags.

To control which release you run, take the following docker run example:

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

Remove --pull=always and change the container tag from v2 to the tag of release you want to use. That'll result in:

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.