Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #225 from nurkiewicz/patch-1
Browse files Browse the repository at this point in the history
Sample doesn't compile on 2.7.7
  • Loading branch information
davidxia committed Aug 9, 2015
2 parents 4aca2f8 + 87fc813 commit 9df2e40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ final HostConfig hostConfig = HostConfig.builder().portBindings(portBindings).bu

// Create container with exposed ports
final ContainerConfig containerConfig = ContainerConfig.builder()
.hostConfig(hostConfig)
.image("busybox").exposedPorts(ports)
.cmd("sh", "-c", "while :; do sleep 1; done")
.build();
Expand All @@ -49,7 +48,7 @@ final String id = creation.id();
final ContainerInfo info = docker.inspectContainer(id);

// Start container
docker.startContainer(id);
docker.startContainer(id, hostConfig);

// Exec command inside running container with attached STDOUT and STDERR
final String[] command = {"bash", "-c", "ls"};
Expand Down

0 comments on commit 9df2e40

Please sign in to comment.