Running Ubuntu in Docker
Follow these steps:
- Open Docker on your Windows system.
- Open Command Line on your Windows system.
-
Run the following command to start an Ubuntu container:
docker run -it --rm ubuntu:22.04
-
Inside the Ubuntu container, run the following command to update it:
apt update -y # Update the package list on your system unminimize # Install 'unminimize' to restore a minimal installation to a more complete state
-
Use
docker exec -it NAME /bin/bash
to attach a second terminal to the same container.NAME
is the container ID. -
You might need to install these packages on your docker:
apt update -y apt upgrade -y apt install nano -y # Install Nano text editor apt install g++ -y # Install g++ compiler apt install telnet -y # Install Telnet client apt install python3 apt install python3-pip apt install net-tools apt install tcpdump apt install iputils-ping