日志报错如下:
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xec0x010x000x000xe80x030x030x9e0xe4'P0xd70xfd0xa6={0x140xf5q*9":r0x10G0xff0xab0xf80xc80x890xa2sc0x1bA40xf30x13 ]. HTTP method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:434)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:511)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1673)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
需要配置docker的insecure-registry
Resolved the issue by adding a file /etc/docker/daemon.json with following content
{
"insecure-registries" : [ "art.local:8081" ]
}
And then restart docker
sudo systemctl daemon-reload
sudo systemctl restart docker