moby/runconfig
Albin Kerouanton 91eee33f62
api: ContainerCreate: return an error when config is nil
The same error is already returned by `(*Daemon).containerCreate()` but
since this function is also called by the cluster executor, the error
has to be duplicated.

Doing that allows to remove a nil check on container config in
`postContainersCreate`.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
2023-10-25 21:25:17 +02:00
..
fixtures Move the runconfig.Parse() function into the runconfig/opts package. 2016-01-04 12:06:29 -05:00
opts runconfig/opts: use strings.Cut() 2022-12-21 11:09:03 +01:00
config.go api/server: allow empty body for POST /commit again 2023-05-17 16:01:11 -04:00
config_test.go runconfig: format code with gofumpt 2023-06-29 00:31:11 +02:00
config_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
config_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
errors.go api: ContainerCreate: return an error when config is nil 2023-10-25 21:25:17 +02:00
hostconfig.go runconfig: ContainerDecoder(): fix handling of invalid JSON 2022-04-11 21:44:45 +02:00
hostconfig_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
hostconfig_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
hostconfig_windows.go runconfig: decodeContainerConfig() return early if there's no HostConfig 2021-08-09 11:17:04 +02:00
hostconfig_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00