Skip to content

Commit 75f5e17

Browse files
mbaechlerfbuecklers
authored andcommitted
fixup! export TmpFs configuration for HostConfig and DockerClient
1 parent 6936734 commit 75f5e17

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/main/java/com/github/dockerjava/api/command/CreateContainerCmd.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,6 @@ public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerRespons
429429

430430
CreateContainerCmd withTty(Boolean tty);
431431

432-
CreateContainerCmd withTmpFs(Map<String, String> tmpFs);
433-
434432
CreateContainerCmd withUlimits(Ulimit... ulimits);
435433

436434
CreateContainerCmd withUlimits(List<Ulimit> ulimits);

src/main/java/com/github/dockerjava/core/command/CreateContainerCmdImpl.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -920,13 +920,6 @@ public CreateContainerCmd withStdinOpen(Boolean stdinOpen) {
920920
return this;
921921
}
922922

923-
@Override
924-
public CreateContainerCmd withTmpFs(Map<String, String> tmpFs) {
925-
checkNotNull(tmpFs, "no tmpFs was specified");
926-
this.hostConfig.withTmpFs(tmpFs);
927-
return this;
928-
}
929-
930923
@Override
931924
public CreateContainerCmd withTty(Boolean tty) {
932925
checkNotNull(tty, "no tty was specified");

src/test/java/com/github/dockerjava/cmd/CreateContainerCmdIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ public void createContainerFromPrivateRegistryWithNoAuth() throws Exception {
871871
public void createContainerWithTmpFs() throws DockerException {
872872

873873
CreateContainerResponse container = dockerRule.getClient().createContainerCmd(DEFAULT_IMAGE).withCmd("sleep", "9999")
874-
.withTmpFs(Collections.singletonMap("/tmp", "rw,noexec,nosuid,size=50m")).exec();
874+
.withHostConfig(new HostConfig().withTmpFs(Collections.singletonMap("/tmp", "rw,noexec,nosuid,size=50m"))).exec();
875875

876876
LOG.info("Created container {}", container.toString());
877877

0 commit comments

Comments
 (0)