Bladeren bron

Merge pull request #4418 from SvenDowideit/mention-expose-in-port-mapping-deprecation

make the port mapping deprecation error message more obvious
unclejack 11 jaren geleden
bovenliggende
commit
17577a6dce
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      runtime.go

+ 1 - 1
runtime.go

@@ -363,7 +363,7 @@ func (runtime *Runtime) Create(config *runconfig.Config, name string) (*Containe
 
 
 	warnings := []string{}
 	warnings := []string{}
 	if checkDeprecatedExpose(img.Config) || checkDeprecatedExpose(config) {
 	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 {
 	if img.Config != nil {