Skip to content

Commit bc00a4c

Browse files
author
klesgidis
committed
Restore with force option
1 parent 9f727c3 commit bc00a4c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public interface RestoreContainerCmd extends SyncDockerCmd<Void> {
1111

1212
public RestoreContainerCmd withCriuOptions(CriuOptions criuOptions);
1313

14+
public RestoreContainerCmd withForce(boolean force);
15+
1416
/**
1517
* @throws NotFoundException
1618
* No such container

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public RestoreContainerCmd withCriuOptions(CriuOptions criuOptions) {
4545
return this;
4646
}
4747

48+
@Override
49+
public RestoreContainerCmd withForce(boolean force) {
50+
this.force = force;
51+
return this;
52+
}
53+
4854
@Override
4955
public String toString() {
5056
return "checkpoint " + containerId;

0 commit comments

Comments
 (0)