I am trying to automate docker commands though coding.
When I use command “docker run --rm -v c:/Users:/data alpine ls /data” for Docker Drive Sharing. Once I run this command I get a promt asking for confirmation “Do you want to share drive?”. I need to forcefully confirm YES to this promt, so that I get no promt. Is there any way so that I can suppress this confirmation promt and pass the credentials inside the command itself. Can Someone help me on this, I have tried in the possible ways everywhere, Your help would be so grateful.