-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Container won't echo environment variables #13763
Comments
Hi! Please read this important information about creating issues. If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information. This is an automated, informational response. Thank you. For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
did you put single quotes around ${LDAP_PASS} to make sure your local shell doesn't try to do the substitution? |
Yeah, sorry my bad. :( |
I gave following command
docker run -it --name <some name> --env LDAP_PASS=<some pass> --env ORGANIZATION=<some value> --env BASE_DN=<some value> --env TODOMAIN=<some value> <image name>
then i gave
docker exec <container name> echo ${LDAP_PASS}
it outputs a new line
same for all other variables.
then
docker exec -it <container name> /bin/bash
inside container
$
echo ${LDAP_PASS}
the same newline
although if run above command in a script it works as expected.
Thank You for your time :)
docker version
:Client version: 1.6.2 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 7c8fca2 OS/Arch (client): linux/amd64 Server version: 1.6.2 Server API version: 1.18 Go version (server): go1.4.2 Git commit (server): 7c8fca2 OS/Arch (server): linux/amd64
docker info
Containers: 2 Images: 121 Storage Driver: aufs Root Dir: /mnt/sda1/var/lib/docker/aufs Backing Filesystem: extfs Dirs: 147 Dirperm1 Supported: true Execution Driver: native-0.2 Kernel Version: 4.0.3-boot2docker Operating System: Boot2Docker 1.6.2 (TCL 5.4); master : 4534e65 - Wed May 13 21:24:28 UTC 2015 CPUs: 4 Total Memory: 997.7 MiB Name: dev ID: I5S2:SVC6:KQXG:TTYP:YPLT:LS45:KWLI:25AV:AI2Q:HMPI:M5WF:KBAS Debug mode (server): true Debug mode (client): false Fds: 24 Goroutines: 40 System Time: Fri Jun 5 14:29:32 UTC 2015 EventsListeners: 0 Init SHA1: 7f9c6798b022e64f04d2aff8c75cbf38a2779493 Init Path: /usr/local/bin/docker Docker Root Dir: /mnt/sda1/var/lib/docker Username: thebaron93 Registry: [https://index.docker.io/v1/] Labels: provider=virtualbox
uname -a
:Linux HP-Pavilion-g6-Rocker 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: