Reputation: 29
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
code snippet :
CreateContainerResponse containerNew
= client.createContainerCmd("owasp/zap2docker-weekly").withAttachStdout(true).withAttachStderr(true).withStdinOpen(true).withCmd("docker", "run", "--rm", "-i", "-p").exec();
Upvotes: 1
Views: 215