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

podman run --env breaks on comma-separated values #2712

Closed
michaeladler opened this issue Mar 20, 2019 · 2 comments
Closed

podman run --env breaks on comma-separated values #2712

michaeladler opened this issue Mar 20, 2019 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@michaeladler
Copy link

/kind bug

Description

podman run --env "key=value" splits value if value is comma-separated.

Steps to reproduce the issue:

$ podman run --rm -it --env "no_proxy=a,b" docker.io/busybox /bin/sh -c env

Describe the results you received:

no_proxy=a
b=
...

Describe the results you expected:

no_proxy=a,b
...

Additional information you deem important (e.g. issue happens only occasionally):

Works in docker (alias podman=docker). I have tried escaping value in different ways but without any success.

Output of podman version:

Version:            1.1.2
RemoteAPI Version:  1
Go Version:         go1.11.5
Built:              Mon Mar 18 09:36:16 2019
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:
  compiler: gc
  git commit: ""
  go version: go1.11.5
  podman version: 1.1.2
host:
  BuildahVersion: 1.7.1
  Conmon:
    package: Unknown
    path: /nix/store/hcmzdrd81zv2h7jcclx1d0c8yrjlzjlr-conmon-unstable-2019-02-15/bin/conmon
    version: 'conmon version , commit: '
  Distribution:
    distribution: nixos
    version: 19.03.git.3574dbb
  MemFree: 10057375744
  MemTotal: 16668540928
  OCIRuntime:
    package: Unknown
    path: /nix/store/gl511zshm42p1h0rw0f5f2mjh41dv3w0-runc-1.0.0-rc6-bin/bin/runc
    version: |-
      runc version 1.0.0-rc6
      spec: 1.0.1-dev
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 8
  hostname: redacted
  kernel: 4.20.16
  os: linux
  rootless: true
  uptime: 38m 30.47s
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - registry.access.redhat.com
store:
  ConfigFile: redacted
  ContainerStore:
    number: 13
  GraphDriverName: overlay
  GraphOptions:
  - overlay.mount_program=/run/current-system/sw/bin/fuse-overlayfs
  GraphRoot: redacted
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 8
  RunRoot: /run/user/redacted
  VolumePath: redacted

Additional environment details (AWS, VirtualBox, physical, etc.):

Physical.

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 20, 2019
giuseppe added a commit to giuseppe/libpod that referenced this issue Mar 20, 2019
if --env "a=b,c" is used, do not split into a=b and c=.

Closes: containers#2712

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Member

PR here: #2717

@michaeladler
Copy link
Author

That was quick. Thanks @giuseppe.

giuseppe added a commit to giuseppe/libpod that referenced this issue Mar 21, 2019
if --env "a=b,c" is used, do not split into a=b and c=.

Closes: containers#2712

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
muayyad-alsadi pushed a commit to muayyad-alsadi/libpod that referenced this issue Apr 21, 2019
if --env "a=b,c" is used, do not split into a=b and c=.

Closes: containers#2712

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants