查询linux自动重新启动原因

您所在的位置:网站首页 linux开机过程中重启 查询linux自动重新启动原因

查询linux自动重新启动原因

2023-08-14 05:37| 来源: 网络整理| 查看: 265

使用Docker-java API对容器化操作

三浪.: 你好我想问一下,如果我使用的是这个需要输入的命令,那么docker-java应该怎么做呢 例如: [code=java] String[] command = {"passwd,testuser"}; DockerClient dockerClient = DockerClientBuilder.getInstance(config).build(); //执行容器内部命令 ExecCreateCmdResponse execCreateCmdResponse = dockerClient.execCreateCmd("1b0cf1ada42a") .withAttachStdout(true).withCmd(command).exec(); dockerClient.execStartCmd(execCreateCmdResponse.getId()).withDetach(false).withTty(true) .exec(new ExecStartResultCallback(System.out, System.err)).awaitCompletion(); [/code] 此时需要输入两次密码,应该怎么做呢,你知道嘛



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3