My docker stack is not able read my local dockerfile

This is my docker stack (Yaml file)
networks:
admin_net:
driver: overlay
services:
admin:
image: frontend:12
deploy:
replicas: 2
update_config:
parallelism: 1
delay: 20s
failure_action: rollback
restart_policy:
condition: on-failure
max_attempts: 3
delay: 10s
window: 60s
ports:
- 3407:3407
networks:
- admin_net

The error when i try to deploy my stack

PS C:\Users\Presenova\Desktop\Swarm\infra> docker stack deploy -c .\admin.yaml adminfront
Updating service adminfront_admin (id: jnim3jztpby0gifoxamv7wsep)
image frontend:12 could not be accessed on a registry to record
its digest. Each node will access frontend:12 independently,
possibly leading to different nodes running different
versions of the image.

Please use 3 backticks before and after code/config to make it more readable and preserve spacing, which is important for yaml.

Swarm is made for multiple nodes, so you usually need an image with a full registry path (or use a public image) for it to work.

@salmanshariff171
Please, format your post according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.

Example code block:

```
services:
  service1:
    image: image1
```

After fixing your post, please send a new comment so people are notified about the fixed content.


Sure SIR, got you and Thanks

Noted Sir got it…Thanks