DEV Community

Discussion on: Docker on Windows or Ubuntu for development?

Collapse
 
ykyuen profile image
Yuen Ying Kit

I will recommend using Docker on Linux as it runs natively on Linux OS. On the other hand, Docker runs on VM thru Hyper-V (Windows) and Hyperkit (MacOS). I used to develop with Docker in my Macbook air using Docker for Mac but i found that the macbook burns whenever i started running docker containers. At the end i switched to Arch Linux and it is much better.

Another alternative is to run a Virtualbox linux VM and run docker on it. It should have less discrepancy with the prod/uat hosting environments which are usually Linux.

Collapse
 
abdel777 profile image
abdellah Frindou • Edited

Thanks for your replay. I just wanna ask, i use also docker on VirtualBox (Ubuntu) but my application (spring boot application with gradle) with the Dockerfile exists on windows. Do you have any idea how can we build an image of it. The problem when using the ./gradlew command to build the task is fuild as doesn't recognize docker command which is not exists on windows. Any ideas ??

Collapse
 
ykyuen profile image
Yuen Ying Kit

i guess u may need to ssh into the ubuntu and execute the build command.

or create a .bat script on windows for the above action such that u could run it on windows directly.