on master help sign in
Adds comment explaining exposed ports
commite25dc5883f10420704c3b44495baed29d3b2dcb7 authorDeni Bertovic <deni@denibertovic.com> dateThu 10 Mar 2016, 12:35 (11 years ago) parent35ad365
1 file changed+8
src/Docker/Types.hs+8
src/Docker/Types.hs+8
@@ -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