Fusion of Engineering, Control, Coding, Machine Learning, and Science

How to Run Linux Ubuntu on Windows by Using Docker Containers

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.

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.

YouTube tutorial is given here:

Exit mobile version