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 11package org .testcontainers .containers ;
22
3+ import com .github .dockerjava .api .model .Capability ;
34import org .testcontainers .containers .wait .strategy .LogMessageWaitStrategy ;
45import org .testcontainers .utility .DockerImageName ;
56import org .testcontainers .utility .LicenseAcceptance ;
@@ -57,7 +58,7 @@ public Db2Container(final DockerImageName dockerImageName) {
5758 super (dockerImageName );
5859 dockerImageName .assertCompatibleWith (DEFAULT_NEW_IMAGE_NAME , DEFAULT_IMAGE_NAME );
5960
60- withPrivilegedMode ( true );
61+ withCreateContainerCmdModifier ( cmd -> cmd . withCapAdd ( Capability . IPC_LOCK ). withCapAdd ( Capability . IPC_OWNER ) );
6162 this .waitStrategy =
6263 new LogMessageWaitStrategy ()
6364 .withRegEx (".*Setup has completed\\ ..*" )
You can’t perform that action at this time.
0 commit comments