我已在Windows 10 Pro计算机(即Oracle服务器)上安装了Docker。当我尝试运行它时,什么也没有发生。单击桌面图标时没有错误。但是,当我在终端中运行hello-world时,出现以下错误:
import java.util.stream.*;
public class StringTester {
public static void main(String [] args) {
String name = "The Adventures of Sherlock Holmes";
if (name.length() > 22) {
String result = Stream.iterate(" ", s -> s)
.limit(10)
.collect(Collectors.joining("", name.substring(0, 22), ""));
System.out.println("<" + result + ">");
// Prints the name within < and >.
// NOTE: The delimiters < and > are used to show the 10 spaces
// after the first 22 characters of name.
System.out.println(result.length()); // prints: 32 = 22 chars + 10 spaces
// If required build a StringBuilder object:
StringBuilder newName = new StringBuilder(result);
}
}
}
由于PC是Oracle服务器,这个问题是否仍然存在? 如果是这样,是否意味着docker无法在服务器PC上运行?有人可以建议解决此问题的任何方法吗?
请帮助!