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

preview_player
Показать описание
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:

# Set up the stable repository:

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:

# 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.

Рекомендации по теме