how to execute docker commands through Java program

后端 未结 3 1780
礼貌的吻别
礼貌的吻别 2021-01-18 11:44

Instead of calling Docker remote APIs, I need develop a program which just talks to Docker Linux Client (not Docker daemon). Here is my code

    try {
               


        
3条回答
  •  我在风中等你
    2021-01-18 12:39

    I will suggest you, don't use any input or output stream, instead, write the output in a file in the docker image. And read your file in your java main Program.

    Hope this helps

提交回复
热议问题