Docker image as a container but will not deploy as a stack or compose file

Hi

I have an image of Searx for the raspberry pi that runs fine as a container with

docker run -d --name searx -p 8888:8888 --restart=“always” --detach=true spybyte/spybyte/rpi-searx:latest

but when I try to deploy it as a stack using
version: ‘3’
services:
searx:
image: spybyte/rpi-searx:latest
ports:
- 8887:8888
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.platform.arch==arm]

networks:
default:
external:
name: cluster_net

I get a node suitable node available, even though its just ran.

am I going something wrong?

cheers

Are you sure the placement constraint [node.platform.arch==arm] is correct?

You might want to check which architecture swarm actualy detects and use it as value for your constraint:
docker node inspect rpi --format '{{.Description.Platform.Architecture}}'

I checked the placement, then took it out a s a trial, still no luck.

I had pushed the image to a local registry and was pulling it from there. When I checked the service using this image it came up with just amd64, but when I used the original is says and and arm and loads.

Not sure what is going on with the local image, even after replacing it several times it still happens. very odd.

thanks for the reply.

cheers