我正在尝试在Windows 8.1上设置Docker .我正在遵循这个指南:https://docs.docker.com/installation/windows/#installation它似乎很好,直接...除了它不适合我.
安装通过好吧.然后我运行Boot2Docker Start,它说它正在初始化然后关闭命令行窗口.一些样本输出:
C:\Program Files\Boot2Docker for Windows>docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): windows/amd64
FATA[0000] Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/doc
ker.sock: An address incompatible with the requested protocol was used.. Are you
trying to connect to a TLS-enabled daemon without TLS?
Run Code Online (Sandbox Code Playgroud)
_
C:\Program Files\Boot2Docker for Windows>boot2docker.exe delete
C:\Program Files\Boot2Docker for Windows>boot2docker.exe download
Latest release for github.com/boot2docker/boot2docker is v1.6.2
Downloading boot2docker …Run Code Online (Sandbox Code Playgroud) 我正在使用 Docx4j 从模板创建文档。
我找不到如何创建斜体段落(HTML 中的 <em> )的方法。
这是一个创建 Paragraph 的方法示例,其中有一个选项可以在Bold 中进行。
private static org.docx4j.wml.P createParagraph(String paragraphContent, boolean addNewLine, boolean bold) {
org.docx4j.wml.ObjectFactory factory = Context.getWmlObjectFactory();
org.docx4j.wml.P p = factory.createP();
org.docx4j.wml.R run = factory.createR();
p.getContent().add(run);
org.docx4j.wml.Text text = factory.createText();
text.setValue(paragraphContent);
run.getContent().add(text);
if(bold){
org.docx4j.wml.RPr rpr = factory.createRPr();
org.docx4j.wml.BooleanDefaultTrue b = new org.docx4j.wml.BooleanDefaultTrue();
b.setVal(true);
rpr.setB(b);
run.setRPr(rpr);
}
if (addNewLine) {
run.getContent().add(factory.createBr());
}
return p;
}
Run Code Online (Sandbox Code Playgroud)
有人知道如何制作斜体段落吗?