1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig/opts
Yong Tang 6106313b20 More descriptive error when running a container with a too long hostname (#21445)
This fix tries to fix issues encountered when running a container with a hostname
that is longer than HOST_NAME_MAX(64).

Previously, `could not synchronise with container process` was generated as the
length of the regex check was missing.

This fix covers the length check so that a hostname that is longer than
HOST_NAME_MAX(64) will be given a correct error message.

Several unit tests cases and additional integration test cases are added as well.

This fix closes #21445.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit fa44b4e81e)
2016-03-25 13:43:07 -04:00
..
fixtures Move the runconfig.Parse() function into the runconfig/opts package. 2016-01-04 12:06:29 -05:00
envfile.go Move some validators from opts to runconfig/opts. 2016-01-04 14:35:36 -05:00
envfile_test.go Move some validators from opts to runconfig/opts. 2016-01-04 14:35:36 -05:00
opts.go Move some validators from opts to runconfig/opts. 2016-01-04 14:35:36 -05:00
opts_test.go Move some validators from opts to runconfig/opts. 2016-01-04 14:35:36 -05:00
parse.go More descriptive error when running a container with a too long hostname (#21445) 2016-03-25 13:43:07 -04:00
parse_test.go More descriptive error when running a container with a too long hostname (#21445) 2016-03-25 13:43:07 -04:00
throttledevice.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
ulimit.go Move ulimit options to runconfig opts 2015-12-23 13:27:58 -05:00
ulimit_test.go Move ulimit options to runconfig opts 2015-12-23 13:27:58 -05:00
weightdevice.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00