@@ -17,6 +17,9 @@ public class HostConfig {
1717
1818 @ JsonProperty ("LxcConf" )
1919 private LxcConf [] lxcConf ;
20+
21+ @ JsonProperty ("LogConfig" )
22+ private LogConfig logConfig ;
2023
2124 @ JsonProperty ("PortBindings" )
2225 private Ports portBindings ;
@@ -66,13 +69,14 @@ public class HostConfig {
6669 public HostConfig () {
6770 }
6871
69- public HostConfig (Bind [] binds , Link [] links , LxcConf [] lxcConf , Ports portBindings , boolean publishAllPorts ,
72+ public HostConfig (Bind [] binds , Link [] links , LxcConf [] lxcConf , LogConfig logConfig , Ports portBindings , boolean publishAllPorts ,
7073 boolean privileged , boolean readonlyRootfs , String [] dns , String [] dnsSearch , VolumesFrom [] volumesFrom ,
7174 String containerIDFile , Capability [] capAdd , Capability [] capDrop , RestartPolicy restartPolicy ,
7275 String networkMode , Device [] devices , String [] extraHosts , Ulimit [] ulimits ) {
7376 this .binds = new Binds (binds );
7477 this .links = new Links (links );
7578 this .lxcConf = lxcConf ;
79+ this .logConfig = logConfig ;
7680 this .portBindings = portBindings ;
7781 this .publishAllPorts = publishAllPorts ;
7882 this .privileged = privileged ;
@@ -98,6 +102,11 @@ public Bind[] getBinds() {
98102 public LxcConf [] getLxcConf () {
99103 return lxcConf ;
100104 }
105+
106+ @ JsonIgnore
107+ public LogConfig getLogConfig () {
108+ return (logConfig == null ) ? new LogConfig () : logConfig ;
109+ }
101110
102111 public Ports getPortBindings () {
103112 return portBindings ;
@@ -177,6 +186,11 @@ public void setLinks(Link... links) {
177186 public void setLxcConf (LxcConf [] lxcConf ) {
178187 this .lxcConf = lxcConf ;
179188 }
189+
190+ @ JsonIgnore
191+ public void setLogConfig (LogConfig logConfig ) {
192+ this .logConfig = logConfig ;
193+ }
180194
181195 public void setPortBindings (Ports portBindings ) {
182196 this .portBindings = portBindings ;
0 commit comments