0

该应用程序在本地系统中运行良好,但我在 docker 中运行它时失败了。

dockerfile 在这里

在 Docker 中启动此服务时,控制台中出现以下错误。

auth-service        |           ... 185 common frames omitted
auth-service        |   Caused by: java.io.FileNotFoundException: META-INF/native/libnetty_transport_native_epoll.so
auth-service        |           at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:161)
auth-service        |           ... 186 common frames omitted
auth-service        |           Suppressed: java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll in java.library.path
auth-service        |                   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
auth-service        |                   at java.lang.Runtime.loadLibrary0(Runtime.java:870)
auth-service        |                   at java.lang.System.loadLibrary(System.java:1122)
auth-service        |                   at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
auth-service        |                   at io.netty.util.internal.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:243)
auth-service        |                   at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:124)
auth-service        |                   ... 186 common frames omitted
auth-service        |                   Suppressed: java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll in java.library.path
auth-service        |                           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
auth-service        |                           at java.lang.Runtime.loadLibrary0(Runtime.java:870)
auth-service        |                           at java.lang.System.loadLibrary(System.java:1122)
auth-service        |                           at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38)
auth-service        |                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
auth-service        |                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
auth-service        |                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
4

0 回答 0