@@ -257,6 +257,14 @@ data ContainerConfig = ContainerConfig {
257257 , attachStdin :: Bool
258258 , attachStdout :: Bool
259259 , attachStderr :: Bool
260+ -- ExposedPorts are used for the PublishAllPorts flag
261+ -- to know which ports to publish. Also it's used for
262+ -- the deamon to know wich Environment variables to
263+ -- inject into a container linking to our container.
264+ -- Example linking a Postgres container named db:
265+ -- DB_PORT_5432_TCP_PORT="5432"
266+ -- DB_PORT_5432_TCP_PROTO="tcp"
267+ -- DB_PORT_5432_TCP="tcp://172.17.0.1:5432"
260268 , exposedPorts :: [Port]
261269 , publishService :: Text
262270 , tty :: Bool