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
docker build
fails with unable to evaluate symlinks in Dockerfile path
#34
Comments
What is the current directory you are building from when you run |
It was |
Strictly confined snaps like docker do not have access to /tmp from the host, /tmp/bar inside the docker snap will end up resolving to somewhere like /tmp/snap.docker/bar. It should work if you use a different directory like /home. |
Right, seems to work from home directory… Okay, so, Because right now all users see is that snap version of |
It's a security feature of snaps, many applications store sensitive data in /tmp, many even unintentionally, and as such to protect users from having secrets or other data leaking from one snap application to another (or from something in the host to a malicious snap), each snap gets it's own /tmp. AFAIK, it's not feasible to change the internals of docker to surface this error better, but perhaps we could call it out in the snap description that it will only work to build images from somewhere in /home, and not from somewhere in /tmp. |
would perhaps an interface that users can connect to |
Thank you @anonymouse64 for highlighting the snaps security feature. Thought I'd share my scenario, as it is yet another practical example of a need to use a non I ran out of disk space (inodes ext4) in the root mounted volume Using /data pathError report (as me):
Error report (as root):
Context:
Using /home pathSuccess result !
|
@bugslifesolutions the issue you are seeing is that dockerd is not permitted to read |
Adding a bind mount solved the issue. Reference page: https://askubuntu.com/questions/1033344/how-to-give-snaps-access-to-somedir |
My Solution:
|
Plain
docker build
doesn't work with docker installed from snap. See also: thenativeweb/wolkenkit#54This is packaging bug, because installing docker with apt from this repo has no problem.
Steps to reproduce (in terms of terminal commands)
Expected
The commands succeeds
Actual
The command failed
Additional information
Output of
snap info docker
:The text was updated successfully, but these errors were encountered: