-
Notifications
You must be signed in to change notification settings - Fork 436
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 when passed context that is located inside Virtualbox shared folder #279
Comments
Do you know which box version you have used before the update? |
I'm not sure exactly which box version I was using before the update, however I went back through box versions and confirmed that it was introduced with
I don't think it is related to a VirtualBox upgrade because we've tried downgrading to a previous version and the problem still manifested itself.
On MacOS 10.15.7 |
Thanks. I've tried my latest box with VirtualBox on my Mac (StefanScherer/windows_2019_docker (virtualbox, 2020.09.22) with Docker EE 19.03.12) and for a simple test shared volumes work fine. Ah, I see, a I did some more investigation. Tried the nightly build from https://master.dockerproject.org/, also fails. It's also compiled with Go 1.13.x Tried to build a Docker CLI 19.03.12 with Go 1.12.17 (I used https://github.com/StefanScherer/docker-cli-builder to build the Docker CLI), and this works. So it's a change in underlying Golang. 🤔
I also tried latest Golang, but it also fails
|
Thanks for the thorough investigation @StefanScherer! |
The upgrade from Docker 19.03.05 in https://app.vagrantup.com/StefanScherer/boxes/windows_2019_docker/versions/2020.07.17 caused this Docker bug to surface in the Vagrant boxes.
It manifests itself when running a
docker build
command which uses a context path that is located inside a Virtualbox shared mount:In this case, the
C:\GitLab-Runner
symlink points to\\vboxsvr\C:_GitLab-Runner
but Docker joins the path without a slash, so instead of\\vboxsvr\C:_GitLab-Runner\dockerfiles
it sees\\vboxsvr\C:_GitLab-Runnerdockerfiles
.See https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/2555 and https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27115 for more context.
The text was updated successfully, but these errors were encountered: