How to Install Docker and Create, Use, or Delete Docker Images

Опубликовано: 23 Июль 2026
на канале: Arashtad
240
4

🎬 We help instructors create video tutorials for their platforms:
https://arashtad.com/studio

🎓 Join Arashtad coding tutorials platform:
https://tuts.arashtad.com

📝 Find out more about this video on our blog:
https://blog.arashtad.com

📚 Download PDF version:
https://press.arashtad.com

In this video we will install docker on a Linux Debian 12 server, then we will create a simple app, build a docker image and run the app on the docker image and after all we remove the image and then uninstall docker from the server completely. The commands we will use for this task go following.

Update your package list:
sudo apt update

Install necessary packages:
sudo apt install apt-transport-https ca-certificates curl software-properties-common

Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/deb... | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Set up the stable repository:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list :: /dev/null

Note: YouTube doesn't allow brackets in the description. Replace :: in the command above with bracket. Watch the video for more info.

Update the package list again to include Docker's repository:
sudo apt update

Install Docker:
sudo apt install docker-ce docker-ce-cli containerd.io

Verify the installation:
sudo systemctl status docker

You should see Docker running. You can also verify by running:
sudo docker --version

(Optional) Allow your user to run Docker commands without sudo:
sudo usermod -aG docker $USER
Log out and log back in for the group membership to be re-evaluated.

All Open Source!

Arashtad provides high quality tutorials, eBooks, articles and documents, design and development services, over 400 free online tools, frameworks, CMS, WordPress plugins, Joomla extensions, and other products.

More Courses ▶ https://tuts.arashtad.com/

Business Inquiries ▶ https://arashtad.com/business-inquiries/
Affiliate Programs ▶ https://arashtad.com/affiliate-programs/

eBooks ▶ https://press.arashtad.com/
Our Products ▶ https://market.arashtad.com/
Our Services ▶ https://arashtad.com/services/
Our Portfolio ▶ https://demo.arashtad.com/
Free Online Tools ▶ https://tools.arashtad.com/
Our Blog ▶ https://blog.arashtad.com/
Documents ▶ https://doc.arashtad.com/
Licensing ▶ https://arashtad.com/licensing/
About us ▶ https://arashtad.com/about/

Join Arashtad Network ▶ https://i.arashtad.com/

Our Social Profiles ▶ https://arashtad.com/arashtad-social-...
Vimeo ▶ https://vimeo.com/arashtad
Udemy ▶ https://www.udemy.com/user/arashtad
GitHub ▶ https://github.com/arashtad
Linkedin ▶   / arashtad  
Twitter ▶   / arashtad