mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #4418 from SvenDowideit/mention-expose-in-port-mapping-deprecation
make the port mapping deprecation error message more obvious
This commit is contained in:
commit
17577a6dce
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue