• Home
  • LLMs
  • Python
  • Docker
  • Kubernetes
  • Java
  • All
  • About
Docker | Install Docker Engine (Ubuntu)
  1. Notes
  2. Uninstall existing installation
  3. Install Docker Engine
  4. Check installed packages
  5. Check Docker Version
  6. Print Docker Information
  7. Verify that Docker Engine is installed correctly
  8. Manage Docker service
  9. Important Docker files/folders

  1. Notes
    See this page for more details on how to install Docker Engine 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
    • 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 and containerd:
  4. Check installed packages
    • Check Docker daemon (dockerd server):

    • Check Docker service:

    • Check containerd Service:
  5. Check Docker Version
  6. Print Docker Information

    The above command is similar to docker system info.
    Both commands will show warnings with your Docker installation if any.

    The command docker system provides more options:

    You can print the Docker disk usage:
  7. Verify that Docker Engine is installed correctly
    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.

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

    • To Start/Stop Docker service:
  9. 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




© 2025  mtitek