Daniel Nephin
d94e1f7806
Convert dockerd to use cobra and pflag
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: ac76967dba
Component: cli
2017-05-15 11:57:19 +02:00
Justas Brazauskas
93648b6f75
Fix typos found across repository
...
Signed-off-by: Justas Brazauskas <brazauskasjustas@gmail.com >
Upstream-commit: f599afe64e
Component: cli
2017-05-15 11:57:16 +02:00
Vincent Demeester
fd09cd3139
Finish linting opts and trust package.
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
Upstream-commit: 59ffb24c8f
Component: cli
2017-05-15 11:57:15 +02:00
Sevki Hasirci
78282ac5a8
Opts lint issues, ip and ulimit
...
Signed-off-by: Sevki Hasirci <s@sevki.org >
Upstream-commit: 409920de5c
Component: cli
2017-05-15 11:57:15 +02:00
Vincent Demeester
265a65f776
Add test coverage to opts and refactor
...
- Refactor opts.ValidatePath and add an opts.ValidateDevice
ValidePath will now accept : containerPath:mode, hostPath:containerPath:mode
and hostPath:containerPath.
ValidateDevice will have the same behavior as current.
- Refactor opts.ValidateEnv, opts.ParseEnvFile
Environment variables will now be validated with the following
definition :
> Environment variables set by the user must have a name consisting
> solely of alphabetics, numerics, and underscores - the first of
> which must not be numeric.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
Upstream-commit: 7b9ceadc4d
Component: cli
2017-05-15 11:57:14 +02:00
Eric-Olivier Lamey
e5cf261e6a
Display empty string instead of <nil> when IP opt is nil.
...
Fixes #13878 .
Signed-off-by: Eric-Olivier Lamey <eo@lamey.me >
Upstream-commit: 0c721e1ad5
Component: cli
2017-05-15 11:57:13 +02:00
Doug Davis
74a2061e32
Remove duplicate call to net.ParseIP
...
and a little cleanup
Signed-off-by: Doug Davis <dug@us.ibm.com >
Upstream-commit: 292e38a144
Component: cli
2017-05-15 11:57:13 +02:00
Solomon Hykes
9b463e6bc8
Fix inconsistency in IP address parsing errors
...
Signed-off-by: Solomon Hykes <solomon@docker.com >
Upstream-commit: 561b98067f
Component: cli
2017-05-15 11:57:12 +02:00
Solomon Hykes
43a7a9eb65
opts.IPVal returns an error on incorrect input
...
Signed-off-by: Solomon Hykes <solomon@docker.com >
Upstream-commit: 1edb726c0b
Component: cli
2017-05-15 11:57:12 +02:00
Solomon Hykes
fb885c354e
opts.IpOpt: a helper to parse IP addressed from the command line
...
Signed-off-by: Solomon Hykes <solomon@docker.com >
Upstream-commit: f34ca0a354
Component: cli
2017-05-15 11:57:12 +02:00