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");