Просмотр исходного кода

The type of 'ExportdPorts' should be 'nat.PortSet'

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
Yanqiang Miao 8 лет назад
Родитель
Сommit
c44c542d95
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/types/container/config.go

+ 1 - 1
api/types/container/config.go

@@ -40,7 +40,7 @@ type Config struct {
 	AttachStdin     bool                  // Attach the standard input, makes possible user interaction
 	AttachStdout    bool                  // Attach the standard output
 	AttachStderr    bool                  // Attach the standard error
-	ExposedPorts    map[nat.Port]struct{} `json:",omitempty"` // List of exposed ports
+	ExposedPorts    nat.PortSet           `json:",omitempty"` // List of exposed ports
 	Tty             bool                  // Attach standard streams to a tty, including stdin if it is not closed.
 	OpenStdin       bool                  // Open stdin
 	StdinOnce       bool                  // If true, close stdin after the 1 attached client disconnects.