Reading Time: < 1 minute
When we install the Loki plugin for Docker on ARM64, we encounter an error.
To solve this, we need to do the following:
First, we install the plugin to create the directories:
docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions
Now, we install GO:
Go outside the Docker folder and execute:
wget -c https://dl.google.com/go/go1.17.3.linux-arm64.tar.gz -O - sudo tar -xz -C /usr/local
Add to PATH:
export PATH=$PATH:/usr/local/go/bin
Check version:
go version
Install plugin:
git clone https://github.com/grafana/loki.git cd loki GOOS=linux GOARCH=arm GOARM=7 go build ./cmd/docker-driver
Now, find the directory where the plugin was installed:
Use the following command:
docker plugin enable loki
It will return an error indicating the folder:
(/var/lib/docker/plugins/e22f159c5f67916394f85a9e299954012118ac0490a082ba9f902f2ffffa351c/rootfs/bin)
Now, modify the following command with your folder:
sudo mv docker-driver /var/lib/docker/plugins/f751ab11fd4fc87454c56f3a47f6fb6b9ddde821c91d911e294c7f9cbf756525/rootfs/bin/docker-driver
Once copied, finally, activate the plugin:
docker plugin enable loki
And it starts working for us.