Skip to content

Warning when docker is not running #31662

@Postremus

Description

@Postremus

Describe the bug

Quarkus prints an warning message if I start in dev mode, and have no docker runtime running.
It also does not matter If I have an extensions present offering dev services or not.

Could this warning please be silenced or turned into an debug log?
This only happens since 2.16.4.Final, I did not notice this log in 2.16.2.Final.

The log is written here:

private static boolean getRootlessStateFor(ContainerRuntime containerRuntime) {
Process rootlessProcess = null;
try {
ProcessBuilder pb = new ProcessBuilder(containerRuntime.getExecutableName(), "info")
.redirectErrorStream(true);
rootlessProcess = pb.start();
int exitCode = rootlessProcess.waitFor();
if (exitCode != 0) {
log.warnf("Command \"%s\" exited with error code %d. " +
"Rootless container runtime detection might not be reliable.",
containerRuntime.getExecutableName(), exitCode);
}

Expected behavior

No response

Actual behavior

2023-03-07 17:36:08,542 WARN  [io.qua.run.uti.ContainerRuntimeUtil] (main) Command "docker" exited with error code 1. Rootless container runtime detection might not be reliable.
__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2023-03-07 17:36:10,733 INFO  [io.quarkus] (Quarkus Main Thread) rootless-docker 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.16.4.Final) started in 3.073s. Listening on: http://localhost:8080

2023-03-07 17:36:10,736 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2023-03-07 17:36:10,737 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]

How to Reproduce?

Download a fresh app from code.quarkus.io, extensions do not matter.

Stop your docker deamon.
mvn clean compile quarkus:dev

Warning from above is printed.

Output of uname -a or ver

MINGW64_NT-10.0-19044 NANBCHL9NG3 3.3.6-341.x86_64 2022-09-05 20:28 UTC x86_64 Msys

Output of java -version

openjdk 17.0.4 2022-07-19
OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)
OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.16.4.Final

Build tool (ie. output of mvnw --version or gradlew --version)

$ mvn --version
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: C:\eclipse\tools\java\maven
Java version: 17.0.4, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\17
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions