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 both the latest tag and its version tag.
The kTranslate version tags, such as kt-2023-02-28-4294815650, don't apply to the new image.
To control which release you run, take the following docker run example:
$docker run -d --name network-agent-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 \>newrelic/network-agent:latest \> -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.snmpRemove --pull=always and change the container tag from latest to the tag of the release you want to use. That'll result in:
$docker run -d --name network-agent-SNMP --restart unless-stopped -p 162:1620/udp \>-v `pwd`/snmp-base.yaml:/snmp-base.yaml \>-e NEW_RELIC_API_KEY=$YOUR_LICENSE_KEY \>newrelic/network-agent:$VERSION_TAG \> -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.snmpReplace $VERSION_TAG with a version tag from Docker Hub.