Skip to content
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

Unable to start docker process #249

Open
sbisme-ss opened this issue Nov 25, 2024 · 0 comments
Open

Unable to start docker process #249

sbisme-ss opened this issue Nov 25, 2024 · 0 comments

Comments

@sbisme-ss
Copy link

i don't know how to do
i use nmp
2024-11-25T22:09:22.748+08:00 DEBUG 42552 --- [kground-preinit] org.jboss.logging : Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property
2024-11-25T22:09:22.794+08:00 INFO 42552 --- [ restartedMain] com.mycompany.myapp.MyapplicationApp : Starting MyapplicationApp using Java 17.0.13 with PID 42552 (C:\Users\86151\myapplication\target\classes started by 86151 in C:\Users\86151\myapplication)
2024-11-25T22:09:22.794+08:00 DEBUG 42552 --- [ restartedMain] com.mycompany.myapp.MyapplicationApp : Running with Spring Boot v3.3.5, Spring v6.1.14
2024-11-25T22:09:22.795+08:00 INFO 42552 --- [ restartedMain] com.mycompany.myapp.MyapplicationApp : The following 2 profiles are active: "dev", "api-docs"
2024-11-25T22:09:23.075+08:00 ERROR 42552 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

org.springframework.boot.docker.compose.core.DockerProcessStartException: Unable to start docker process. Is docker correctly installed?
at org.springframework.boot.docker.compose.core.DockerCli$DockerCommands.getDockerCommand(DockerCli.java:140)
at org.springframework.boot.docker.compose.core.DockerCli$DockerCommands.(DockerCli.java:129)
at org.springframework.boot.docker.compose.core.DockerCli.lambda$new$0(DockerCli.java:65)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
at org.springframework.boot.docker.compose.core.DockerCli.(DockerCli.java:64)
at org.springframework.boot.docker.compose.core.DockerCompose.get(DockerCompose.java:92)
at org.springframework.boot.docker.compose.lifecycle.DockerComposeLifecycleManager.getDockerCompose(DockerComposeLifecycleManager.java:156)
at org.springframework.boot.docker.compose.lifecycle.DockerComposeLifecycleManager.start(DockerComposeLifecycleManager.java:111)
at org.springframework.boot.docker.compose.lifecycle.DockerComposeListener.onApplicationEvent(DockerComposeListener.java:53)
at org.springframework.boot.docker.compose.lifecycle.DockerComposeListener.onApplicationEvent(DockerComposeListener.java:35)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136)
at org.springframework.boot.context.event.EventPublishingRunListener.contextLoaded(EventPublishingRunListener.java:98)
at org.springframework.boot.SpringApplicationRunListeners.lambda$contextLoaded$4(SpringApplicationRunListeners.java:72)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112)
at org.springframework.boot.SpringApplicationRunListeners.contextLoaded(SpringApplicationRunListeners.java:72)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:433)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:334)
at com.mycompany.myapp.MyapplicationApp.main(MyapplicationApp.java:70)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
Caused by: org.springframework.boot.docker.compose.core.ProcessStartException: Unable to start command docker version --format {{.Client.Version}}
at org.springframework.boot.docker.compose.core.ProcessRunner.startProcess(ProcessRunner.java:116)
at org.springframework.boot.docker.compose.core.ProcessRunner.run(ProcessRunner.java:88)
at org.springframework.boot.docker.compose.core.ProcessRunner.run(ProcessRunner.java:75)
at org.springframework.boot.docker.compose.core.DockerCli$DockerCommands.getDockerCommand(DockerCli.java:135)
... 28 common frames omitted
Caused by: java.io.IOException: Cannot run program "docker": CreateProcess error=2, 系统找不到指定的文件。
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at org.springframework.boot.docker.compose.core.ProcessRunner.startProcess(ProcessRunner.java:106)
... 31 common frames omitted
Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件。
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:499)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 33 common frames omitted

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.250 s
[INFO] Finished at: 2024-11-25T22:09:23+08:00
[INFO] ------------------------------------------------------------------------

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