简体   繁体   English

JAVA 6 Docker客户端

[英]JAVA 6 Docker client

I'm looking for a way to orchestrate Docker containers using JAVA 6. So I have the Docker images ready but I want to be able to start and stop and interact with them but I am limited to JAVA 6. 我正在寻找一种使用JAVA 6编排Docker容器的方法。因此,我已经准备好了Docker映像,但是我希望能够启动和停止它们并与之交互,但仅限于JAVA 6。

All the JAVA client libraries I've found so far instead of JAVA 7, but I can't use that yet. 到目前为止,我已经找到了所有的Java客户端库,而不是JAVA 7,但是我还不能使用。

Anyone have any ideas? 有人有想法么?

Many thanks 非常感谢

EVen though the java docker-clients compile with jdk7, you can try and change the target of maven-compiler-plugin to 1.6 , and see if that is compatible. EVen尽管Java docker-clients使用jdk7进行了编译,但是您可以尝试maven-compiler-plugintarget更改为1.6 ,看看是否兼容。

See spotify/docker-client/pom.xml #L199 or docker-java/docker-java/pom.xml #L233 参见spotify/docker-client/pom.xml #L199docker-java/docker-java/pom.xml #L233

You would still compile with jdk 1.7, but the end result should be able to execute in a JDK6 environment (unless the sources depends on some specific 1.7 feature) 您仍然可以使用jdk 1.7进行编译,但是最终结果应该能够在JDK6环境中执行(除非源取决于某些特定的1.7功能)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM