Second and consequent executions of a docker command fails with 404 page not found error because baseResource in AbstrDockerCmdExec is modified every execution by an invocation of getBaseResource().path(...) method, which mutates WebTarget state. F.e. in CreateContainerCmdExec:
WebTarget webResource = getBaseResource().path("/containers/create");
Second and consequent executions of a docker command fails with 404 page not found error because
baseResourceinAbstrDockerCmdExecis modified every execution by an invocation ofgetBaseResource().path(...)method, which mutatesWebTargetstate. F.e. inCreateContainerCmdExec: