
Most Docker images are available on Docker Hub An image is an immutable binary file including the application and all other dependencies such as libraries, binaries, and instructions necessary for running the application. That make up an executable software application. Docker Images #Ī Docker image is made up of a series of filesystem layers representing instructions in the image’s Dockerfile Now that you have installed on your Debian 10, let’s go over the basic docker concepts and commands. The output should look like the following: The command will download a test image, run it in a container, print a “Hello from Docker” message and exit. Once done to verify that you can run docker commands without sudo type in: docker container run hello-world Log out and log back in so that the group membership is refreshed. To do that, type in: sudo usermod -aG docker $USER You’ll need to add your user to the docker group which is created during the installation of the Docker CE package. If you want to execute Docker commands without prepending sudo

Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Tue 20:52:00 GMT 1min 11s agoĪt the time of writing, the latest stable version of Docker is 19.03.1: docker -v Docker version 19.03.1, build 74b1e89Įxecuting the Docker Command Without Sudo #īy default, only root and user with sudo privileges rvice - Docker Application Container Engine.To verify it type in: sudo systemctl status docker Once the installation is completed the Docker service will start automatically. Update the apt package list and install the latest version of Docker CE (Community Edition): sudo apt update sudo apt install docker-ce $(lsb_release -cs) will return the name of the Debian distribution To your system’s software repository list: sudo add-apt-repository "deb $(lsb_release -cs) stable" Import the repository’s GPG key using the following curl command

Over HTTPS: sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2 Install the packages necessary to add a new repository

Perform the following steps to install the latest stable Docker version from the Docker’s repositories. In this tutorial, we’ll explain how to install Docker on Debian 10 Buster and explore the basic Docker concepts and commands. How to install docker on ubuntu AWS Server
