Skip to content

problems of Java springboot application #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jiashuaizhang opened this issue Dec 23, 2024 · 0 comments
Open

problems of Java springboot application #50

jiashuaizhang opened this issue Dec 23, 2024 · 0 comments

Comments

@jiashuaizhang
Copy link

jiashuaizhang commented Dec 23, 2024

I,m trying to use dockerc for demo springboot application,like this:

FROM openjdk:17

ENV TZ=Asia/Shanghai
COPY target/mvc_demo-0.0.1-SNAPSHOT.jar /opt/mvc_demo.jar
WORKDIR /
EXPOSE 8888
ENTRYPOINT ["sh", "-c", "java -jar /opt/mvc_demo.jar"]
  1. When I use ./dockerc --image docker-daemon:mvc_demo:v5 --output mvc-demo --arch amd64 to package, I got this error affter executed the binary file:
unknown argument ignored: lazytime
thread 17037 panic: failed to run container (status/errno: 22) (-23): clone

Unwind error at address `exe:0x1083476` (error.InvalidDebugInfo), trace may be incomplete

thread 17027 panic: container didn't exist normally : 6

Unwind error at address `exe:0x1083476` (error.InvalidDebugInfo), trace may be incomplete

but it can be resolved after I add --rootful
2. another problem is seems like the hostname not work:

Caused by: java.lang.RuntimeException: InetAddress java.net.InetAddress.getLocalHost() throws UnknownHostException
See http://rocketmq.apache.org/docs/faq/ for further details.
        at org.apache.rocketmq.common.MixAll.localhost(MixAll.java:396) ~[rocketmq-common-4.9.4.jar!/:4.9.4]
        at org.apache.rocketmq.common.MixAll.<clinit>(MixAll.java:77) ~[rocketmq-common-4.9.4.jar!/:4.9.4]
        ... 35 common frames omitted
Caused by: java.net.UnknownHostException: umoci-default: umoci-default: Temporary failure in name resolution
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1656) ~[na:na]
        at org.apache.rocketmq.common.MixAll.localhost(MixAll.java:386) ~[rocketmq-common-4.9.4.jar!/:4.9.4]
        ... 36 common frames omitted
Caused by: java.net.UnknownHostException: umoci-default: Temporary failure in name resolution
        at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[na:na]
        at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929) ~[na:na]
        at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1529) ~[na:na]
        at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848) ~[na:na]
        at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1519) ~[na:na]
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1651) ~[na:na]
        ... 37 common frames omitted

then I remove some dependencys to skip it.
3. finally I start up my application, but no tcp listening on my machine. whether or not add -p args.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant