-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman-remote on windows doesn't send environment variables passed with --env
to remote
#12056
Comments
you can get free windows vm's here https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ but it might be a little bit of work to set up. I'll also try reproducing on the win10 vm tomorrow if I remember! |
I can confirm that the bug also exists in a fresh windows 10 vm from the above link |
@baude PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@ashley-cui Do you have access to a Windows box to see what is going on here? |
@rhatdan Ran into this one as well. The windows env parsing is stubbed out via an "unsupported" impl using build tag atm. I was planning to fix as a followup of #12503 but if @ashley-cui you want to take that one thats great too! |
Unfortunately I don't have a windows box ATM, so feel free to grab this one @n1hility |
I tried to run I have passed - name: databaseserver
image: postgres:11-alpine
env_file:
- .env
bindings:
- name: "5432"
port: 5432
connectionString: Server=${host};Port=${port};User Id=${env:POSTGRES_USER};Password=${env:POSTGRES_PASSWORD};
volumes:
- name: postgres-storage
target: /var/lib/postgresql/data Inside
The logs are as follows
That mean |
Fixes containers#12056 Also, enables existing parsing logic for all Unix derived OSs Signed-off-by: Jason T. Greene <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman-remote on windows doesn't send environment variables passed with
--env
to the remote.Steps to reproduce the issue:
podman run
command with an environment variable passed with--env
:NEW_ENV_VAR
):Describe the results you expected:
Expecting
NEW_ENV_VAR
to be passed to remote, and shown in container'senv
output.On linux or mac it looks like:
Additional information you deem important (e.g. issue happens only occasionally):
-e
is passed correctly to the remote.--env-file .env
on windows works fine to pass vars from .env file.Although I'm less interested in this being solved, the "read host's current env var" mode also doesn't work:
linux:
windows:
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):My remote is using
podman-3.4.1-r0
from alpine's edge repo, windows version is 3.4.1 from the GitHub release.Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes, no mention of environment variables at all.
Additional environment details (AWS, VirtualBox, physical, etc.):
I ran into this bug after trying to use podman-compose, which passes docker-compose.yml's
environment:
vars to apodman create
command with-e
. The bug also happens in podman v3.4.0.Thanks!
The text was updated successfully, but these errors were encountered: