-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Better error message from jib:buildDocker when docker command requires sudo #330
Comments
It looks like this is caused by a Docker daemon not running? |
The docker daemon is running, but it requires sudo. Perhaps it may get you the same error message when the daemon is not running. |
Hey chanseok, what output do you get when you just run something like |
The same error message as in #330 (comment). The cause is that docker commands require sudo, so I just think we need a better error message from jib for this kind of failure.
|
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>spring-jib</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>spring-jib</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>0.9.13</version>
<configuration>
<from>
<image>openjdk</image>
</from>
<to>
<image>yangguang007/test:${project.version}</image>
</to>
<container>
<ports>
<port>8080</port>
</ports>
</container>
<useOnlyProjectCache>true</useOnlyProjectCache>
</configuration>
</plugin>
</plugins>
</build>
</project> i dont know what is error ??? |
@yangguang001 I noticed you asked for help in another issue too. As @briandealwis said (#727 (comment)), please open a new issue with more information. Thanks. |
Works fine when the
docker
command does not require sudo. However, the error message is not so helpful when it does.The text was updated successfully, but these errors were encountered: