1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig
Yong Tang fa44b4e81e 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>
2016-03-24 17:42:28 +00:00
..
fixtures Move the runconfig.Parse() function into the runconfig/opts package. 2016-01-04 12:06:29 -05:00
opts More descriptive error when running a container with a too long hostname (#21445) 2016-03-24 17:42:28 +00:00
compare.go Vendor engine-api to 70d266e96080e3c3d63c55a4d8659e00ac1f7e6c 2016-02-29 19:28:37 +08:00
compare_test.go Vendor engine-api to 70d266e96080e3c3d63c55a4d8659e00ac1f7e6c 2016-02-29 19:28:37 +08:00
config.go Windows: Fix 'isolation' 2016-02-10 13:19:19 -08:00
config_test.go Vendor engine-api to 70d266e96080e3c3d63c55a4d8659e00ac1f7e6c 2016-02-29 19:28:37 +08:00
config_unix.go fix some typos. 2016-03-10 10:09:27 +08:00
config_windows.go fix some typos. 2016-03-10 10:09:27 +08:00
errors.go Allow --hostname with --net=host 2016-03-09 20:40:12 -05:00
hostconfig.go Modify import paths to point to the new engine-api package. 2016-01-06 19:48:59 -05:00
hostconfig_test.go Run privileged containers when userns are specified 2016-03-14 17:09:25 +02:00
hostconfig_unix.go Allow --hostname with --net=host 2016-03-09 20:40:12 -05:00
hostconfig_windows.go Windows libnetwork integration 2016-03-09 20:33:21 -08:00
streams.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00