Docker container technology allows for a fast container deployment. The objective of this article is to install Docker on Debian 10 Buster Linux.

In this tutorial you will learn:
  • How to install Docker on Debian 10
  • How to set a Docker administrative privileges to a user
Docker on GNU/Linux Debian 10 Buster
Docker on GNU/Linux Debian 10 Buster

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System GNU/Linux Debian 10 Buster
Software docker
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

How to install docker on Debian 10 Buster step by step instructions

  1. Updated Sources list

    Docker package is a part of the standard Debian 10 repository. Before performing an actual Docket installation execute a below command to update your package index:

    # apt update
    
  2. Install Docker.io package

    The actual Docker installation consists of an installation of the docker.io package. This can be done be execution of the below apt command:

    # apt install docker.io
    

  3. SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


  4. Set a specific user with docker administrative permissions

    This step is optional and will allow a specific user to perform a docker administrative tasks without a need for a root administrative privileges. In the below example we will give a docker administrative privileges to a user linuxconfig:

    # usermode -aG docker linuxconfig
    
  5. Test Docker installation

    The easiest way to confirm a correct docker installation is to deploy and run a sample hello-world container:

    # docker run hello-world
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    To generate this message, Docker took the following steps:
     1. The Docker client contacted the Docker daemon.
     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
        (amd64)
     3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
     4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.
    
    To try something more ambitious, you can run an Ubuntu container with:
     $ docker run -it ubuntu bash
    
    Share images, automate workflows, and more with a free Docker ID:
     https://hub.docker.com/
    
    For more examples and ideas, visit:
     https://docs.docker.com/get-started/
    
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions