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

man jib:exportDockerContext fails on second try due to unsafe recursive delete #913

Closed
briandealwis opened this issue Aug 31, 2018 · 1 comment · Fixed by #1264
Closed

Comments

@briandealwis
Copy link
Member

briandealwis commented Aug 31, 2018

Jib: 0.9.10-SNAPSHOT
OS: macOS 10.13.6

man jib:exportDockerContext fails:

[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.10-SNAPSHOT:exportDockerContext (default) on project first: Export Docker context failed because cannot clear directory '/Users/bsd/Manumitting/Projects/GooglePluginEclipse/jibplayground/maven/try/child/target/jib-docker-context' safely, perhaps you should clear /Users/bsd/Manumitting/Projects/GooglePluginEclipse/jibplayground/maven/try/child/target/jib-docker-context manually before creating the Docker context: /Users/bsd/Manumitting/Projects/GooglePluginEclipse/jibplayground/maven/try/child/target/jib-docker-context: unable to guarantee security of recursive delete -> [Help 1]

Given that it's in a target area where we've generated things, and jib's unlikely to be run as a root user, we just use the unsafe delete.

@matt-shaw
Copy link

I’ve also had this issue.

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

Successfully merging a pull request may close this issue.

2 participants