@@ -20,6 +20,7 @@ public class ContainerConfiguration : ResourceConfiguration<CreateContainerParam
2020 /// Initializes a new instance of the <see cref="ContainerConfiguration" /> class.
2121 /// </summary>
2222 /// <param name="image">The image.</param>
23+ /// <param name="platform">The platform.</param>
2324 /// <param name="imagePullPolicy">The image pull policy.</param>
2425 /// <param name="name">The name.</param>
2526 /// <param name="hostname">The hostname.</param>
@@ -43,6 +44,7 @@ public class ContainerConfiguration : ResourceConfiguration<CreateContainerParam
4344 /// <param name="privileged">A value indicating whether the privileged flag is set or not.</param>
4445 public ContainerConfiguration (
4546 IImage image = null ,
47+ string platform = null ,
4648 Func < ImageInspectResponse , bool > imagePullPolicy = null ,
4749 string name = null ,
4850 string hostname = null ,
@@ -69,6 +71,7 @@ public ContainerConfiguration(
6971 AutoRemove = autoRemove ;
7072 Privileged = privileged ;
7173 Image = image ;
74+ Platform = platform ;
7275 ImagePullPolicy = imagePullPolicy ;
7376 Name = name ;
7477 Hostname = hostname ;
@@ -118,6 +121,7 @@ public ContainerConfiguration(IContainerConfiguration oldValue, IContainerConfig
118121 : base ( oldValue , newValue )
119122 {
120123 Image = BuildConfiguration . Combine ( oldValue . Image , newValue . Image ) ;
124+ Platform = BuildConfiguration . Combine ( oldValue . Platform , newValue . Platform ) ;
121125 ImagePullPolicy = BuildConfiguration . Combine ( oldValue . ImagePullPolicy , newValue . ImagePullPolicy ) ;
122126 Name = BuildConfiguration . Combine ( oldValue . Name , newValue . Name ) ;
123127 Hostname = BuildConfiguration . Combine ( oldValue . Hostname , newValue . Hostname ) ;
@@ -153,6 +157,10 @@ public ContainerConfiguration(IContainerConfiguration oldValue, IContainerConfig
153157 /// <inheritdoc />
154158 public IImage Image { get ; }
155159
160+ /// <inheritdoc />
161+ [ JsonIgnore ]
162+ public string Platform { get ; }
163+
156164 /// <inheritdoc />
157165 [ JsonIgnore ]
158166 public Func < ImageInspectResponse , bool > ImagePullPolicy { get ; }
0 commit comments