DockerCLI/opts
Tom Klingenberg 96c026eb30 import environment variables that are present
previously docker did import environment variables if they were present
but created them if they were not when it was asked via a --env-file
cli option to import but not create them.

fix is to only import the variable into the environment if it is present.

additionally do not import variable names of zero-length (which are lines
w/ a potential variable definition w/o a variable name).

refs:

- https://github.com/docker/for-linux/issues/284

Signed-off-by: Tom Klingenberg <tklingenberg@lastflood.net>
2018-07-02 07:37:12 +02:00
..
config.go Update CLI docs and add opts/config.go 2017-05-15 11:57:21 +02:00
duration.go Move duration opts into an opts package 2017-05-16 17:49:40 +02:00
duration_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
env.go Clean some stuff from runconfig that are cli only… 2017-05-15 11:57:20 +02:00
env_test.go Clean some stuff from runconfig that are cli only… 2017-05-15 11:57:20 +02:00
envfile.go import environment variables that are present 2018-07-02 07:37:12 +02:00
envfile_test.go add test for undefined variable environment file import 2018-07-02 07:33:44 +02:00
file.go import environment variables that are present 2018-07-02 07:37:12 +02:00
hosts.go Update docker daemon to dockerd 2017-05-15 11:57:20 +02:00
hosts_test.go Clean some stuff from runconfig that are cli only… 2017-05-15 11:57:20 +02:00
hosts_unix.go Finish linting opts and trust package. 2017-05-15 11:57:15 +02:00
hosts_windows.go Windows: Default to npipe transport 2017-05-15 11:57:18 +02:00
ip.go Convert dockerd to use cobra and pflag 2017-05-15 11:57:19 +02:00
ip_test.go golint: trust 2017-05-15 11:57:15 +02:00
mount.go Update cli imports to using local package 2017-05-15 14:45:19 +02:00
mount_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
network.go Add nakedret linter. 2017-10-12 11:48:51 -04:00
network_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
opts.go build: change --no-console to --console=[true|false|auto] 2018-06-13 21:07:11 +00:00
opts_test.go Spelling fixes 2017-05-22 01:39:06 +00:00
opts_unix.go Update docker daemon to dockerd 2017-05-15 11:57:20 +02:00
opts_windows.go Update docker daemon to dockerd 2017-05-15 11:57:20 +02:00
parse.go import environment variables that are present 2018-07-02 07:37:12 +02:00
port.go Warn when using host-ip for published ports 2018-04-21 12:49:47 -07:00
port_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
quotedstring.go Add unconvert linter 2017-06-14 16:54:27 -07:00
quotedstring_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
runtime.go Clean some stuff from runconfig that are cli only… 2017-05-15 11:57:20 +02:00
secret.go support custom paths for secrets 2017-05-15 11:57:21 +02:00
secret_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
throttledevice.go Add unconvert linter 2017-06-14 16:54:27 -07:00
ulimit.go Clean some stuff from runconfig that are cli only… 2017-05-15 11:57:20 +02:00
ulimit_test.go Clean some stuff from runconfig that are cli only… 2017-05-15 11:57:20 +02:00
weightdevice.go Add gosimple lint 2017-06-14 16:55:08 -07:00