mirror of
https://github.com/docker/docs.git
synced 2026-03-28 14:58:53 +07:00
make the port mapping deprecation error message more obvious see 4075
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
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