mtitek
  • Cloud
  • Big Data
  • CI
  • Install
  • Samples
  • Java
  • Ubuntu
  • Maven
  • Archive
Docker | Install Docker Engine - Community (Version: 19.03.12) (Ubuntu)
  1. Notes
  2. Uninstall existing installation
  3. Install Docker Engine - Community
  4. Check installed packages
  5. Verify Docker installation
  6. Manage Docker service
  7. Important Docker files/folders

  1. Notes
    Please visit this page for more details on how to install Docker Engine - Community for Ubuntu: https://docs.docker.com/install/linux/docker-ce/ubuntu/
  2. Uninstall existing installation
    • Check if Docker was already installed:


      You might have Docker installed with different package names: docker, docker.io , or docker-engine

    • To uninstall an existing installation of Docker:

      [Optional] Delete Docker data folder:

      [Optional] Delete Docker custom configuration folder:

      [Optional] Delete docker command configuration folder:
  3. Install Docker Engine - Community
    • Update the apt package index:

    • [Optional] Install packages to allow apt to use a repository over HTTPS:

    • Add Docker’s official GPG key:

    • Set up the repository:

    • Update the apt package index:

    • Install the latest version of Docker Engine - Community and containerd:
  4. Check installed packages
    • Check installed packages:


    • Check Docker daemon (dockerd server):

    • Check Docker service:

    • Check containerd Service:
  5. Verify Docker installation
    • Check Docker Version:

    • Print Docker Information:

    • Verify that Docker Engine - Community is installed correctly by running the hello-world image:

      The command "docker run hello-world" downloads the hello-world image and runs it in a container.
      When the container runs, it prints a "Hello from Docker!" message and exits.

  6. Manage Docker service
    • To Enable/Disable Docker service (start on boot):

    • To Start/Stop Docker service:
  7. Important Docker files/folders
    • Important folders/files:
      /var/lib/docker/
      /etc/docker/key.json
      /lib/systemd/system/docker.service
      /lib/systemd/system/docker.socket
      /lib/systemd/system/containerd.service




© 2020  mtitek