Docker stack error when using ssh tunnel

Hi there,

I have an issue when executing a docker stack command whilst using an SSH tunnel to a remote docker host. If I execute the following command:

docker stack deploy --with-registry-auth --compose-file docker-deploy.yml my-lovely-service 

Then it errors with:

service mylovelyservice: Error response from daemon: page not found 

If I run the same command pointing at the local daemon then it works fine. It’s worth noting that the remote daemon is logged into docker hub and able to access the remote repository.

The compose file docker-deploy.yml looks like this at the moment:

version: '3'               
      image: myrepository/mylovelyservice:latest                                                                      
        - "1234:1234"

Any help would be much appreciated, thank you!