Closed demaniak closed 1 month ago
The magic sauce to make this work can be seen here
The crux seems to be :
alpinelinux/docker-cli
for container imageghcr.io/allfro/allfro/device-mapping-manager
as the internally run imageFrom the above link, this will mean something like this:
services:
device-mapping-manager:
image: alpinelinux/docker-cli
entrypoint: docker
command: |
run
--rm
-i
--name device-manager
--privileged
--cgroupns=host
--pid=host
--userns=host
-v /sys:/host/sys
-v /var/run/docker.sock:/var/run/docker.sock
ghcr.io/allfro/allfro/device-mapping-manager:1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
restart_policy:
condition: any
When attempting to deploy the service, the error as mentioned in the title occurs:
Error response from daemon: Encountered remote "application/vnd.docker.plugin.v1+json"(plugin) when fetching
Same problem when running
docker pull ndouba/device-mapping-manager
manually.Interestingly, the docker hub page indicates that one should run
docker plugin install ndouba/device-mapping-manager:latest
for the image.Which seems to link up with the "plugin" mention in the mime type reported by the error.
docker info: