You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ContainerRequest represents the parameters used to get a running container
129
129
typeContainerRequeststruct {
130
130
FromDockerfile
131
-
HostAccessPorts []int
132
-
Imagestring
133
-
ImageSubstitutors []ImageSubstitutor
134
-
Entrypoint []string
135
-
Envmap[string]string
136
-
ExposedPorts []string// allow specifying protocol info
137
-
Cmd []string
138
-
Labelsmap[string]string
139
-
MountsContainerMounts
140
-
Tmpfsmap[string]string
141
-
RegistryCredstring// Deprecated: Testcontainers will detect registry credentials automatically
142
-
WaitingFor wait.Strategy
143
-
Namestring// for specifying container name
144
-
Hostnamestring
145
-
WorkingDirstring// specify the working directory of the container
146
-
ExtraHosts []string// Deprecated: Use HostConfigModifier instead
147
-
Privilegedbool// For starting privileged container
148
-
Networks []string// for specifying network names
149
-
NetworkAliasesmap[string][]string// for specifying network aliases
150
-
NetworkMode container.NetworkMode// Deprecated: Use HostConfigModifier instead
151
-
Resources container.Resources// Deprecated: Use HostConfigModifier instead
152
-
Files []ContainerFile// files which will be copied when container starts
153
-
Userstring// for specifying uid:gid
154
-
SkipReaperbool// Deprecated: The reaper is globally controlled by the .testcontainers.properties file or the TESTCONTAINERS_RYUK_DISABLED environment variable
155
-
ReaperImagestring// Deprecated: use WithImageName ContainerOption instead. Alternative reaper image
156
-
ReaperOptions []ContainerOption// Deprecated: the reaper is configured at the properties level, for an entire test session
157
-
AutoRemovebool// Deprecated: Use HostConfigModifier instead. If set to true, the container will be removed from the host when stopped
158
-
AlwaysPullImagebool// Always pull image
159
-
ImagePlatformstring// ImagePlatform describes the platform which the image runs on.
160
-
Binds []string// Deprecated: Use HostConfigModifier instead
161
-
ShmSizeint64// Amount of memory shared with the host (in bytes)
162
-
CapAdd []string// Deprecated: Use HostConfigModifier instead. Add Linux capabilities
163
-
CapDrop []string// Deprecated: Use HostConfigModifier instead. Drop Linux capabilities
164
-
ConfigModifierfunc(*container.Config) // Modifier for the config before container creation
165
-
HostConfigModifierfunc(*container.HostConfig) // Modifier for the host config before container creation
166
-
EnpointSettingsModifierfunc(map[string]*network.EndpointSettings) // Modifier for the network settings before container creation
167
-
LifecycleHooks []ContainerLifecycleHooks// define hooks to be executed during container lifecycle
168
-
LogConsumerCfg*LogConsumerConfig// define the configuration for the log producer and its log consumers to follow the logs
131
+
HostAccessPorts[]int
132
+
Imagestring
133
+
ImageSubstitutors[]ImageSubstitutor
134
+
Entrypoint[]string
135
+
Envmap[string]string
136
+
ExposedPorts[]string// allow specifying protocol info
137
+
Cmd[]string
138
+
Labelsmap[string]string
139
+
MountsContainerMounts
140
+
Tmpfsmap[string]string
141
+
RegistryCredstring// Deprecated: Testcontainers will detect registry credentials automatically
142
+
WaitingForwait.Strategy
143
+
Namestring// for specifying container name
144
+
Hostnamestring
145
+
WorkingDirstring// specify the working directory of the container
146
+
ExtraHosts[]string// Deprecated: Use HostConfigModifier instead
147
+
Privilegedbool// For starting privileged container
148
+
Networks[]string// for specifying network names
149
+
NetworkAliasesmap[string][]string// for specifying network aliases
150
+
NetworkModecontainer.NetworkMode// Deprecated: Use HostConfigModifier instead
151
+
Resourcescontainer.Resources// Deprecated: Use HostConfigModifier instead
152
+
Files[]ContainerFile// files which will be copied when container starts
153
+
Userstring// for specifying uid:gid
154
+
SkipReaperbool// Deprecated: The reaper is globally controlled by the .testcontainers.properties file or the TESTCONTAINERS_RYUK_DISABLED environment variable
155
+
ReaperImagestring// Deprecated: use WithImageName ContainerOption instead. Alternative reaper image
156
+
ReaperOptions[]ContainerOption// Deprecated: the reaper is configured at the properties level, for an entire test session
157
+
AutoRemovebool// Deprecated: Use HostConfigModifier instead. If set to true, the container will be removed from the host when stopped
158
+
AlwaysPullImagebool// Always pull image
159
+
ImagePlatformstring// ImagePlatform describes the platform which the image runs on.
160
+
Binds[]string// Deprecated: Use HostConfigModifier instead
161
+
ShmSizeint64// Amount of memory shared with the host (in bytes)
162
+
CapAdd[]string// Deprecated: Use HostConfigModifier instead. Add Linux capabilities
163
+
CapDrop[]string// Deprecated: Use HostConfigModifier instead. Drop Linux capabilities
164
+
ConfigModifierfunc(*container.Config) // Modifier for the config before container creation
165
+
HostConfigModifierfunc(*container.HostConfig) // Modifier for the host config before container creation
166
+
EndpointSettingsModifierfunc(map[string]*network.EndpointSettings) // Modifier for the network settings before container creation
167
+
LifecycleHooks[]ContainerLifecycleHooks// define hooks to be executed during container lifecycle
168
+
LogConsumerCfg*LogConsumerConfig// define the configuration for the log producer and its log consumers to follow the logs
169
169
}
170
170
171
171
// sessionID returns the session ID for the container request.
0 commit comments