Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Instalar plugin Loki para Docker en ARM64

Tiempo de lectura: < 1 minuto

Cuando instalamos el plugin de Loki para Docker en ARM64 nos encontramos con que da error.

Para solucionarlo tenemos que hacer lo siguiente:

Primero instalamos el plugin para que cree los directorios:

docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

Ahora instalamos GO:

Ir fuera de la carpeta Docker y ejecutar:

wget -c https://dl.google.com/go/go1.17.3.linux-arm64.tar.gz -O - | sudo tar -xz -C /usr/local

Añadir al PATH:

export PATH=$PATH:/usr/local/go/bin

Comprobar versión:

go version

Instalar plugin:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
git clone https://github.com/grafana/loki.git
cd loki
GOOS=linux GOARCH=arm GOARM=7 go build ./cmd/docker-driver
git clone https://github.com/grafana/loki.git cd loki GOOS=linux GOARCH=arm GOARM=7 go build ./cmd/docker-driver
git clone https://github.com/grafana/loki.git

cd loki

GOOS=linux GOARCH=arm GOARM=7 go build ./cmd/docker-driver

Ahora buscamos el directorio dónde se instaló el plugin:

Poniendo:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
docker plugin enable loki
docker plugin enable loki
docker plugin enable loki

Te va a devolver un error indicando la carpeta:

(/var/lib/docker/plugins/e22f159c5f67916394f85a9e299954012118ac0490a082ba9f902f2ffffa351c/rootfs/bin)

Ahora modificamos el siguiente comando con nuestra carpeta:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo mv docker-driver /var/lib/docker/plugins/f751ab11fd4fc87454c56f3a47f6fb6b9ddde821c91d911e294c7f9cbf756525/rootfs/bin/docker-driver
sudo mv docker-driver /var/lib/docker/plugins/f751ab11fd4fc87454c56f3a47f6fb6b9ddde821c91d911e294c7f9cbf756525/rootfs/bin/docker-driver
sudo mv docker-driver /var/lib/docker/plugins/f751ab11fd4fc87454c56f3a47f6fb6b9ddde821c91d911e294c7f9cbf756525/rootfs/bin/docker-driver

Una vez copiado, finalmente, activamos el plugin:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
docker plugin enable loki
docker plugin enable loki
docker plugin enable loki

Y ya nos empieza a funcionar.

2

Deja un comentario