How to Run Linux Ubuntu on Windows by Using Docker Containers
Aleksandar Haber PhD Aleksandar Haber PhD
21.3K subscribers
383 views
11

 Published On Sep 21, 2024

#ros2 #docker #machinelearning #robotics #automation #industrialrobotics
It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way:
- Buy me a Coffee: https://www.buymeacoffee.com/Aleksand...
- PayPal: https://www.paypal.me/AleksandarHaber
- Patreon: https://www.patreon.com/user?u=320801...
- You Can also press the Thanks YouTube Dollar button

In this tutorial, we explain how to run different versions of Linux Ubuntu on Windows by using docker.
Motivation: If you are a developer or a software engineer testing programs in Linux and Ubuntu, you would often need to switch between these two operating systems in order to test different aspects and behavior of your program. This is especially the case for Robot Operating System (ROS) developers. Consequently, it is a good idea to have Linux Ubuntu installation inside of Windows environment, so you can quickly test different options.

There are several approaches for running Linux Ubuntu on Windows machines:
1) We can use virtual machines
2) We can use Windows Subsystem for Linux. We covered this in our previous tutorials. 3) We can use Docker and pull a Linux Ubuntu distribution from the official repository given here: https://hub.docker.com/_/ubuntu

It is good to know and to test all of these three options. In this tutorial, we will cover the option number 3. This might not be the most optimal or the fastest option, however, it is good for testing and learning different aspects of Linux Ubuntu.

In this tutorial, we explain how to
1) Download (pull) Linux Ubuntu image from the official Docker repository.
2) Start a Linux Ubuntu container from the Linux Ubuntu image.
3) Test the container by executing some Bash command and by installing nano and C++ compiler.
4) Compile and run a simple program inside of Docker Linux Container.

show more

Share/Embed