Error : failed to deploy a stack: could not find /home/docker/appdata/wwwseb/config: stat /home/docker/appdata/wwwseb/config: no such file or directory
In this case, what is the location of the context ? how can i know th path ?
On my own I’ve never used a fullpath, always a relative one.
I always put my dockerfile in the same folder than the yaml or in a subfolder, never else where.
Not sure it can work and not sure it’s a good idea (all projects should be standalone, all files have to be stored in an application folder you can then push to github.com f.i.)
If it says the folder is not there, it is either not there or Docker has no access to it. Make sure you install Docker from an official repository, not the snap version (It has access to your home only). Use docker compose instead of docker-compose just to avoid using an outdated version. And also make sure you have no typo in the path.
You could not refer to files outside the context from a Dockerfile, but the Dockerfile itself can be anywhere. I wouldn’t put it anywhere either, but it can be.