iptables: No chaintargetmatch by that name.n (exit status 1))

it2023-01-13  55

com.github.dockerjava.api.exception.InternalServerErrorException: {"message":"driver failed programming external connectivity on endpoint hopeful_newton (125a1608e6258e00c570a7dba54f7c34b6be0b6cfa4870f13514f9af00d19462):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 34180 -j DNAT --to-destination 172.17.0.3:8000 ! -i docker0: iptables: No chain/target/match by that name.\n (exit status 1))"}

    at com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter.filter(ResponseStatusExceptionFilter.java:52)     at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:133)     at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:121)     at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)     at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:283)     at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$0(JerseyInvocation.java:753)     at org.glassfish.jersey.internal.Errors.process(Errors.java:316)     at org.glassfish.jersey.internal.Errors.process(Errors.java:298)     at org.glassfish.jersey.internal.Errors.process(Errors.java:229)     at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:414)     at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:752)     at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:445)     at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:351)     at com.github.dockerjava.jaxrs.StartContainerCmdExec.execute(StartContainerCmdExec.java:29)     at com.github.dockerjava.jaxrs.StartContainerCmdExec.execute(StartContainerCmdExec.java:12)     at com.github.dockerjava.jaxrs.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:23)     at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35)     at com.github.dockerjava.core.command.StartContainerCmdImpl.exec(StartContainerCmdImpl.java:46)  

 

防火墙重启或关闭后,需要重新启动docker:systemctl restart docker,否则会报以上错误

最新回复(0)