Skip to content
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

Passing environment variables from Docker container to Windows #843

Open
lcax200000 opened this issue Oct 29, 2024 · 2 comments
Open

Passing environment variables from Docker container to Windows #843

lcax200000 opened this issue Oct 29, 2024 · 2 comments

Comments

@lcax200000
Copy link

lcax200000 commented Oct 29, 2024

Operating system

ubuntu 22.04

Description

I need to pass some environment variables from the Docker container to the Windows inside the container.
What should I do?

Docker compose

none

Docker log

none

Screenshots (optional)

No response

@dengniqiu
Copy link

There is a configuration in the file to modify the configuration of the data file to the local file (but I can't find which directory the data folder is mapped to in the system),There is also a way,Enter the file directory to use the temporary php website php -S 127.0.0.1:xxx Enter the system to access the host IP+ port to download,If you want to permanently access the website, you can try to use the Alist network disk,Mount the directory,You windows want to upload content directly to access the network disk, The network disk also supports uploading.

@kroese
Copy link
Contributor

kroese commented Nov 12, 2024

@lcax200000 I think the easiest way would be to use https://github.com/dockur/windows?tab=readme-ov-file#how-do-i-run-a-script-after-installation to set this variables from a custom install.bat script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@kroese @lcax200000 @dengniqiu and others