BUG: Minikube docker daemon doesn't mount all subdirectories #3001
Labels
area/mount
co/hyperkit
Hyperkit related issues
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
os/macos
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Please provide the following details:
Environment:
Minikube version (use
minikube version
): v0.28.1cat ~/.minikube/machines/minikube/config.json | grep DriverName
): hyperkitcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
):minikube-v0.28.1.isoThe above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
What happened:
To generate a container of our service we run the build in a docker build container where we mount the current workspace to a folder called /go/src/pkg on the container. If we run the docker build command on the native docker for mac all the subdirectories of the workspace show up correctly. But once I run
eval $(minikube docker-env)
pointing to the minikube docker daemon only a single subdirectory shows up with the remaining subdirectories not being mounted.The image below shows a narrow repro where the directories print in the mount with the minikube docker daemon are different from the ones mounted by native docker daemon.
The exact steps performed are below
ls -alh
-> the OS's view of the current directory which is going to be mountedmake container
-> which does a build of the container using the native docker daemoneval $(minikube docker-env)
-> switch to the minikube docker daemonmake container
-> build the container again with the minikube docker daemonWhat you expected to happen: The same set of subdirectories should be mounted by the native docker for mac and the minikube docker daemons.
How to reproduce it (as minimally and precisely as possible):
Output of
minikube logs
(if applicable):Anything else do we need to know:
The text was updated successfully, but these errors were encountered: