mirror of
https://github.com/docker/cli.git
synced 2026-08-31 02:24:13 -05:00
Merge pull request #4418 from SvenDowideit/mention-expose-in-port-mapping-deprecation
make the port mapping deprecation error message more obvious Upstream-commit: 17577a6dce6508f0c6908a678dee35eb17a5f7e3 Component: engine
This commit is contained in:
@@ -363,7 +363,7 @@ func (runtime *Runtime) Create(config *runconfig.Config, name string) (*Containe
|
||||
|
||||
warnings := []string{}
|
||||
if checkDeprecatedExpose(img.Config) || checkDeprecatedExpose(config) {
|
||||
warnings = append(warnings, "The mapping to public ports on your host has been deprecated. Use -p to publish the ports.")
|
||||
warnings = append(warnings, "The mapping to public ports on your host via Dockerfile EXPOSE (host:port:port) has been deprecated. Use -p to publish the ports.")
|
||||
}
|
||||
|
||||
if img.Config != nil {
|
||||
|
||||
Reference in New Issue
Block a user