File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
modules/db2/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
package org .testcontainers .containers ;
2
2
3
+ import com .github .dockerjava .api .model .Capability ;
3
4
import org .testcontainers .containers .wait .strategy .LogMessageWaitStrategy ;
4
5
import org .testcontainers .utility .DockerImageName ;
5
6
import org .testcontainers .utility .LicenseAcceptance ;
@@ -57,7 +58,7 @@ public Db2Container(final DockerImageName dockerImageName) {
57
58
super (dockerImageName );
58
59
dockerImageName .assertCompatibleWith (DEFAULT_NEW_IMAGE_NAME , DEFAULT_IMAGE_NAME );
59
60
60
- withPrivilegedMode ( true );
61
+ withCreateContainerCmdModifier ( cmd -> cmd . withCapAdd ( Capability . IPC_LOCK ). withCapAdd ( Capability . IPC_OWNER ) );
61
62
this .waitStrategy =
62
63
new LogMessageWaitStrategy ()
63
64
.withRegEx (".*Setup has completed\\ ..*" )
You can’t perform that action at this time.
0 commit comments