Docker java api , java - docker

217 Views Asked by At

Getting this error when I am running code, I am using java - docker version 3.0.14. I want to create a container using java - docker and have to pass -config API with that and also I have to run a shell script in that newly created container

error

code snippet :

    CreateContainerResponse containerNew
     = client.createContainerCmd("owasp/zap2docker-weekly").withAttachStdout(true).withAttachStderr(true).withStdinOpen(true).withCmd("docker", "run", "--rm", "-i", "-p").exec();
0

There are 0 best solutions below