Hi,
I am dealing with docker swarm deployment.
I can run container in my localhost like this:
docker run -it --rm --name gdalapp1 -v “$PWD”:/app -p 5006:5006 -e LANG=C.UTF-8 gdalapp1
What I did for swarm:
docker stack deploy -c docker-compose.yml gdalapp1
docker service ps gdalapp1_web
but swarm deployment gives:
Rejected 7 seconds ago “invalid mount config for type…”
What is the problem with volume config?
I will appreciate if you help.
here is the docker-compose.yml:
version: “3”
services:
web:
# replace username/repo:tag with your name and image details
image: gdalapp1
ports:
- “5006:5006”
volumes:
- /usr/local/gdal8:/app
environment :
- LANG=C.UTF-8
entrypoint: "./entrypoint.sh"
networks:
- webnet
networks:
webnet: