@@ -27,6 +27,9 @@ public class HostConfig {
2727 @ JsonProperty ("Privileged" )
2828 private boolean privileged ;
2929
30+ @ JsonProperty ("ReadonlyRootfs" )
31+ private boolean readonlyRootfs ;
32+
3033 @ JsonProperty ("Dns" )
3134 private String [] dns ;
3235
@@ -64,7 +67,7 @@ public HostConfig() {
6467 }
6568
6669 public HostConfig (Bind [] binds , Link [] links , LxcConf [] lxcConf , Ports portBindings , boolean publishAllPorts ,
67- boolean privileged , String [] dns , String [] dnsSearch , VolumesFrom [] volumesFrom , String containerIDFile ,
70+ boolean privileged , boolean readonlyRootfs , String [] dns , String [] dnsSearch , VolumesFrom [] volumesFrom , String containerIDFile ,
6871 Capability [] capAdd , Capability [] capDrop , RestartPolicy restartPolicy , String networkMode , Device [] devices ,
6972 String [] extraHosts , Ulimit [] ulimits ) {
7073 this .binds = new Binds (binds );
@@ -73,6 +76,7 @@ public HostConfig(Bind[] binds, Link[] links, LxcConf[] lxcConf, Ports portBindi
7376 this .portBindings = portBindings ;
7477 this .publishAllPorts = publishAllPorts ;
7578 this .privileged = privileged ;
79+ this .readonlyRootfs = readonlyRootfs ;
7680 this .dns = dns ;
7781 this .dnsSearch = dnsSearch ;
7882 this .volumesFrom = volumesFrom ;
@@ -95,7 +99,7 @@ public Bind[] getBinds() {
9599 public LxcConf [] getLxcConf () {
96100 return lxcConf ;
97101 }
98-
102+
99103 public Ports getPortBindings () {
100104 return portBindings ;
101105 }
@@ -108,6 +112,10 @@ public boolean isPrivileged() {
108112 return privileged ;
109113 }
110114
115+ public boolean isReadonlyRootfs () {
116+ return readonlyRootfs ;
117+ }
118+
111119 public String [] getDns () {
112120 return dns ;
113121 }
@@ -183,6 +191,10 @@ public void setPrivileged(boolean privileged) {
183191 this .privileged = privileged ;
184192 }
185193
194+ public void setReadonlyRootfs (boolean readonlyRootfs ) {
195+ this .readonlyRootfs = readonlyRootfs ;
196+ }
197+
186198 public void setDns (String [] dns ) {
187199 this .dns = dns ;
188200 }
0 commit comments