I am running docker file on my repository but unknown issue was come up. I wrote docker build . to the terminal but it said error checking context:
can't stat '/media/dev/Data/Project/.../src'
I'm not sure what the reason is and how to get out of this risk. Anybody can help me?
I had a similar issue until recently . On 18.04, Ubuntu installs Docker via Snap.
By default, SNAP packages are not allowed to access /media, or any other / root folder. The SNAP sandbox will deny access unless you have explicitly granted access to removable-media. ( /mnt or /media )
To grant docker access to removable-media:
sudo snap connect docker:removable-media
Alternatively, move your project into your /home/user directory and try building from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With