Skip to content

DockerClientTest.java #492

@jrmillerwork

Description

@jrmillerwork

The loop:

for (String command : commands) {
            LOG.info("Running command: [{}]", command);

            CreateContainerResponse container = dockerClient.createContainerCmd("busybox").withCmd(commands).exec();
            dockerClient.startContainerCmd(container.getId());

            int exitcode = dockerClient.waitContainerCmd(container.getId()).exec(new WaitContainerResultCallback())
                    .awaitStatusCode();
            assertThat(exitcode, equalTo(0));
        }

Seems to be executing commands rather than command -- is this correct?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions