Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerRespons

CreateContainerCmd withMacAddress(String macAddress);

@Deprecated
@CheckForNull
Long getMemory();

@Deprecated
CreateContainerCmd withMemory(Long memory);

@Deprecated
@CheckForNull
Long getMemorySwap();

@Deprecated
CreateContainerCmd withMemorySwap(Long memorySwap);

@CheckForNull
String getName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,37 @@ public CreateContainerCmd withMacAddress(String macAddress) {
return this;
}

@Deprecated
@Override
@JsonIgnore
public Long getMemory() {
return hostConfig.getMemory();
}

@Deprecated
@Override
public CreateContainerCmd withMemory(Long memory) {
checkNotNull(memory, "memory was not specified");
hostConfig.withMemory(memory);
return this;
}

@Deprecated
@Override
@JsonIgnore
public Long getMemorySwap() {
return hostConfig.getMemorySwap();
}

@Deprecated
@Override
public CreateContainerCmd withMemorySwap(Long memorySwap) {
checkNotNull(memorySwap, "memorySwap was not specified");
hostConfig.withMemorySwap(memorySwap);
return this;
}


@Override
public String getName() {
return name;
Expand Down