Liked my video? 👍Buy me a cup of coffee! 🍵
/ @tanztalkstech
00:00:45 Installing Docker from the Default Ubuntu Repository (providing a simpler installation)
a: Update the Repository
sudo apt update
b: Install Docker
sudo apt install docker.io -y
c: Install Dependencies
sudo snap install docker
d: Check Installation
sudo systemctl status docker
docker --version
00:04:30 Remove Docker:
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
00:05:00 Installing Docker from the Official Docker Repository (ensuring the latest Docker version)
a: Update the Package Repository
sudo apt update
b: Install Prerequisite Packages
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
c: Add GPG Key
curl -fsSL https://download.docker.com/linux/ubu... | sudo apt-key add -
d: Add Docker Repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
e: Specify Installation Source
apt-cache policy docker-ce
f: Install Docker
sudo apt install docker-ce -y
g: Check Installation
sudo systemctl status docker
docker --version
--------
00:08:40 How to Work With Docker
00:09:25 Working With Docker Images
Docker images are the base for building Docker containers. The images are located on Docker Hub, which is a Docker repository. The repository allows all users to host their images on Docker hub, resulting in many images to choose from, including applications and Linux distributions.
Search for Docker Images
Search for available images on Docker Hub using the docker search command.
sudo docker search [keyword]
Pull a Docker Image
sudo docker pull [image-name]
See Downloaded Images
sudo docker images
--------
00:12:05 Working With Docker Containers
A Docker container is an isolated virtual environment created from a Docker image. Use an image you previously downloaded or specify its name in the docker run command to automatically download the image and create a container.
Run a Docker Container
sudo docker run [image-name]
Note: To obtain interactive shell access to the container, specify the -i and -t switches.
View Docker Containers
An active Docker container is a container that is currently running. Listing containers is useful as it outputs the unique ID and name required when starting, stopping, or removing a container.
sudo docker ps
Note: To list all containers, including the inactive ones, add the -a flag.
Start a Docker Container
sudo docker start [container-ID | container-name]
Stop a Docker Container
sudo docker stop [container-ID | container-name]
Remove a Docker Container
sudo docker rm [container-ID | container-name]
--------
00:19:40 Working With Docker Volumes
A Docker volume is a filesystem mechanism allowing users to preserve data generated and used by Docker containers. The volumes ensure data persistence and provide a better alternative to persisting data in a container's writable layer because they don't increase the Docker container size.
Create a Docker Volume
sudo docker volume create [volume_name]
Remove a Docker Volume
sudo docker volume rm [volume_name]
--------
Ubuntu Tutorials: • Ubuntu Tutorials
Bash Shell Scripting Tutorial: • Bash Shell Scripting Tutorial
Install Android Studio on Ubuntu 22.04 LTS | Android Studio on Ubuntu 22.04 LTS: • How to Install Android Studio on Ubuntu 22...
Install Ubuntu on Windows 11 (WSL) | Windows Subsystem for Linux with GUI Support: • How to Install Ubuntu on Windows 11 (WSL) ...
Reset Forgotten Ubuntu Linux Password on WSL | Debian, Kali, Linux Password Reset on WSL | Windows 11: • Reset Forgotten Ubuntu Linux Password on W...
Install Vim (Vi Improved) Text Editor on Ubuntu | Debian Linux: • How to Install Vim (Vi Improved) Text Edit...
Edit Hosts file in Ubuntu | How to Block Websites in Linux using /etc/hosts file: • How to edit Hosts file in Ubuntu | How to ...
--------
More Tutorials for VMWare Workstation Player:
• VMware Workstation Player Tutorials
Install Microsoft Windows 11 on VMware Player: • How to Install Microsoft Windows 11 on VMw...
Install macOS 12 Monterey on VMware Player: • How to Install macOS 12 Monterey🔥on VMware...
Install macOS 13 Ventura on VMware Player: • How to Install macOS 13 Ventura in VMware ...
--------
My Gear:
MSI GL65 Leopard Gaming Laptop
Intel Core i7-10750H 2.6GHz, 10th Gen (6 Cores)
15.6" FHD (1920*1080), IPS-Level 144Hz
16GB DDR4 RAM, 2666Mhz
Nvidia GeForce RTX 2060, 6GB GDDR6
256GB NVMe M.2 SSD + 1TB SATA 7200RPM HDD
Windows 11 Home, 64Bit
HD Webcam (720p at 30 fps)
Per Key RGB SteelSeries Keypad
#Ubuntu #Docker #tanztalkstech2 #tanzTalkstech #tanzeelosama @tanzTalks.tech2 @tanzTalkstech @TanzeelOAnsari