-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The volume stacks is lost on the Windows #72
Comments
Yes, because of the path mapping issue on Windows, I would say currently Dockge's container is not supported on Windows. I will add non-Docker method later for Windows. |
Thanks for the reply. |
Hi I run Dockge on docker desktop on windows 10 pro. I don't have any issues with mapping. Here is my compose file and converted run command that I use:
Docker run command:
This stores my stacks in C:\Yourpath\Stacks\StackName\compose.yaml Docker prompted me to confirm I was happy sharing the directory. If that doesn't happen for you, go into docker dekstop settings and resources to ensure the directory is listed as shared. I am also using hyper v not WSL. Let me know if this helped. I'm assuming your using docker desktop on windows. |
@AmIBeingObtuse Thanks your reply, can u try to add the belows version: "3.8"
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./data:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 13001:3001 # <Host Port>:<Container Port>
restart: always I also will try to use |
Because I have mapped my paths in my compose as:
and left the environmental variable as:
Your compose file gets stored in:
for me. I had to change your compose file to:
So I can persist the data and make it easier to access the files. But it did work fine via Dockge. |
Yes, you are right. As long as it is a absolute path, it is ok to use, but I assume that most people will not aware this, so I claimed that Dockge is not supported on Windows at the moment. |
Surely its a standard mapping? I don't think it needs any change at all. As long as the volume is mapped as shown it works fine. That doesn't mean its not windows supported. Maybe just provide a note in the default compose file for example:
IMO |
I have a another question, if I used absolute path on volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "C:/Yourpath/Data:/app/data"
- "C:/Yourpath/Stacks:/opt/stacks"
environment:
- `"DOCKGE_STACKS_DIR=/opt/stacks"` Need I use absolute path on all stacks volume which mapped data? e.g. version: "3.8"
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- - ./data:/app/data
+ - C:/Yourpath/Uptimekuma:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 13001:3001 # <Host Port>:<Container Port>
restart: always If |
Hi
I do use absolute paths as you've described.
I don't see any reason not to when using docker desktop on windows and in
compose files/stacks.
It hasn't failed me yet.
That said I know some images have issues with this like a postgres
container which requires a volume in docker when used on windows.
So I would map a volume for that like
```
Volumes:
- imagenamepostgres:/var/lib/postgresql/data
```
So it depends. Welcome to the world of learning docker and self hosting.
I'm still in the learning phase myself. 👌
…On Fri, 24 Nov 2023, 05:31 AliuQ, ***@***.***> wrote:
I have a another question, if I used absolute path on dockge volumes
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "C:/Yourpath/Data:/app/data"
- "C:/Yourpath/Stacks:/opt/stacks"environment:
- `"DOCKGE_STACKS_DIR=/opt/stacks"`
Need I use absolute path on all stacks volume which mapped data? e.g.
version: "3.8"
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:- - ./data:/app/data+ - C:/Yourpath/Uptimekuma:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 13001:3001 # <Host Port>:<Container Port>
restart: always
If uptime-kuma always need absolute path to bind mount /app/data, may dockge
volumes use relative path instead of absolute path?
—
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2PH7LJNTZPMMOCCJMJFQU3YGAWJ7AVCNFSM6AAAAAA7R3UYISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGE3DOOJWHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I agree @AmIBeingObtuse. @louislam I think the compose.yaml and other documentation should be updated to reflect this. |
No, using
https://stackoverflow.com/questions/72889955/is-it-bad-practice-to-use-mysqllatest-as-docker-image |
I can understand why using the version number as the tag is best practice. I guess I'm used to devs posting only the latest stable version on that latest tag and using nightly for the latest unstable version. I do use version tags for databases always. But I do agree with you. |
I deployed dockge on Windows at
D:\myCompose\dockge
and my docker-ompose.yaml file looks like this:I tried deploying
uptime-kuma
, which has the followingcompose.yaml
:Now the problem is that I don't know how to specify the stack's directory, if I follow my previous binding
./stacks
, then I can getD:\myCompose\dockge\stacks\uptime-kuma\compose.yaml
, but I don't know where the./data
bound incompose.yaml
is.If you use the absolute path
D:\myCompose\dockge\stacks
, I get another errorThe text was updated successfully, but these errors were encountered: