Skip to main content
ubuntuask.com

Back to all posts

How to Install Docker In Ubuntu?

Published on
5 min read
How to Install Docker In Ubuntu? image

Best Docker Installation Tools to Buy in October 2025

1 EVEDMOT Pizza Dough Docker Roller Stainless Steel, Pin Puncher Dough Hole Maker, Docking Tool for Pizza Pie Cookie Pastry Bread

EVEDMOT Pizza Dough Docker Roller Stainless Steel, Pin Puncher Dough Hole Maker, Docking Tool for Pizza Pie Cookie Pastry Bread

  • DURABLE WOOD & STEEL: STURDY DESIGN ENSURES LASTING USE FOR BAKERS.

  • VERSATILE PIZZA TOOL: PERFECT FOR CRUSTS, PASTRIES, AND QUICK DOUGH PREP.

  • GIFT-READY FOR BAKERS: AN IDEAL PRESENT FOR COOKING ENTHUSIASTS AND EVENTS!

BUY & SAVE
$12.99
EVEDMOT Pizza Dough Docker Roller Stainless Steel, Pin Puncher Dough Hole Maker, Docking Tool for Pizza Pie Cookie Pastry Bread
2 Orblue Pizza Dough Docker Pastry Roller with Spikes, Pizza Docking Tool for Home & Commercial Kitchen - Pizza Making Accessories that Prevent Dough from Blistering, Black

Orblue Pizza Dough Docker Pastry Roller with Spikes, Pizza Docking Tool for Home & Commercial Kitchen - Pizza Making Accessories that Prevent Dough from Blistering, Black

  • EFFORTLESSLY AVOID BLISTERING WITH OUR EASY-TO-USE DOUGH ROLLER!
  • CREATE PERFECT CRUSTS FOR PIZZA, PIES, AND COOKIES WITH EASE!
  • QUICK TO CLEAN AND DISHWASHER SAFE-MORE TIME FOR PIZZA FUN!
BUY & SAVE
$9.99
Orblue Pizza Dough Docker Pastry Roller with Spikes, Pizza Docking Tool for Home & Commercial Kitchen - Pizza Making Accessories that Prevent Dough from Blistering, Black
3 Pizza Dough Docker, Premium Dough Roller with Stainless Steel Spikes, Sturdy Pizza Docking Tool that Prevents Dough from Blistering, Time-Saver for Making Pizza Cookie Pie Pastry

Pizza Dough Docker, Premium Dough Roller with Stainless Steel Spikes, Sturdy Pizza Docking Tool that Prevents Dough from Blistering, Time-Saver for Making Pizza Cookie Pie Pastry

  • DURABLE STAINLESS STEEL AND PLASTIC FOR LONG-LASTING PERFORMANCE.
  • VERSATILE TOOL FOR PIZZAS, COOKIES, PIES, AND MORE!
  • SAVES TIME: EFFICIENTLY POKES DOUGH HOLES IN SECONDS.
BUY & SAVE
$11.99
Pizza Dough Docker, Premium Dough Roller with Stainless Steel Spikes, Sturdy Pizza Docking Tool that Prevents Dough from Blistering, Time-Saver for Making Pizza Cookie Pie Pastry
4 Orblue Pizza Dough Docker, Pizza Roller with Spikes, Pizza Docking Tool for Home & Commercial Kitchen - Pizza Oven Accessories that Prevent Dough from Blistering

Orblue Pizza Dough Docker, Pizza Roller with Spikes, Pizza Docking Tool for Home & Commercial Kitchen - Pizza Oven Accessories that Prevent Dough from Blistering

  • PREVENTS BLISTERING FOR A TASTIER, APPEALING PIZZA EVERY TIME!
  • DURABLE HIGH-IMPACT PLASTIC ENSURES LIFETIME USE FOR YOUR KITCHEN.
  • ACHIEVE EVEN CRUSTS EASILY WITH OUR USER-FRIENDLY PIZZA DOCKER!
BUY & SAVE
$7.99
Orblue Pizza Dough Docker, Pizza Roller with Spikes, Pizza Docking Tool for Home & Commercial Kitchen - Pizza Oven Accessories that Prevent Dough from Blistering
5 Pizza Dough Docker Roller - Bubble and Blistering Killer Time-Saver for Home Kitchen Pizza Making - Docking Tool Accessory

Pizza Dough Docker Roller - Bubble and Blistering Killer Time-Saver for Home Kitchen Pizza Making - Docking Tool Accessory

  • EFFORTLESSLY CREATE PERFECT PIZZA CRUSTS WITH EVEN DOUGH DISTRIBUTION.
  • ERGONOMIC DESIGN ENSURES COMFORT AND EASY CLEANING FOR HASSLE-FREE USE.
  • IDEAL GIFT FOR COOKING ENTHUSIASTS TO ELEVATE THEIR CULINARY SKILLS!
BUY & SAVE
$5.85
Pizza Dough Docker Roller - Bubble and Blistering Killer Time-Saver for Home Kitchen Pizza Making - Docking Tool Accessory
6 Chef Pomodoro Stainless Steel Pizza Dough Docker Roller (21 x 14.5 cm, Spike Length 7 mm) - Essential Kitchen Tool for Crackers Chef Pomodoro Stainless Steel Pizza Dough Roller

Chef Pomodoro Stainless Steel Pizza Dough Docker Roller (21 x 14.5 cm, Spike Length 7 mm) - Essential Kitchen Tool for Crackers Chef Pomodoro Stainless Steel Pizza Dough Roller

  • CREATE CRISPY, DELICIOUS CRUSTS WITH OUR VERSATILE DOUGH DOCKER!
  • BUILT TO LAST: CHOOSE FROM STYLISH STAINLESS STEEL OR DURABLE PLASTIC.
  • PERFECT FOR PIZZA & CRACKERS; A MUST-HAVE FOR EVERY BAKING ENTHUSIAST!
BUY & SAVE
$22.99
Chef Pomodoro Stainless Steel Pizza Dough Docker Roller (21 x 14.5 cm, Spike Length 7 mm) - Essential Kitchen Tool for Crackers Chef Pomodoro Stainless Steel Pizza Dough Roller
7 JuyVerq Pizza Dough Docker, Professional Dough Roller with Stainless Steel Spikes Wood Handle, Sturdy Pizza Docking Tool for Home & Commercial Kitchen, Time-Saver for Making Pizza Pie Pastry Bread

JuyVerq Pizza Dough Docker, Professional Dough Roller with Stainless Steel Spikes Wood Handle, Sturdy Pizza Docking Tool for Home & Commercial Kitchen, Time-Saver for Making Pizza Pie Pastry Bread

  • DURABLE DESIGN: PREMIUM STAINLESS STEEL WITH AN OAK HANDLE, DISHWASHER SAFE.
  • VERSATILE TOOL: PERFECT FOR PIZZAS, COOKIES, PIES, AND MORE!
  • EFFICIENT USAGE: STAGGERED SPIKES SAVE TIME BY PREVENTING PUFFING.
BUY & SAVE
$12.99
JuyVerq Pizza Dough Docker, Professional Dough Roller with Stainless Steel Spikes Wood Handle, Sturdy Pizza Docking Tool for Home & Commercial Kitchen, Time-Saver for Making Pizza Pie Pastry Bread
8 BigBigMe Pizza Dough Docker Docker Dough Bubble killer Time-Saver Pizza Dough Roller Docker Dough Blistering Killer, Pizza Docker Roller for Home Kitchen, Pizza Making Accessories, Pizza Docking Tool

BigBigMe Pizza Dough Docker Docker Dough Bubble killer Time-Saver Pizza Dough Roller Docker Dough Blistering Killer, Pizza Docker Roller for Home Kitchen, Pizza Making Accessories, Pizza Docking Tool

  • PREMIUM BPA-FREE MATERIALS ENSURE SAFE, HEALTHY PIZZA MAKING.
  • EFFORTLESSLY PUNCH DOUGH EVENLY WITH ROTATABLE DESIGN!
  • VERSATILE FOR PIZZAS, PIES, COOKIES, AND MORE-BAKE ANYTHING!
BUY & SAVE
$8.59
BigBigMe Pizza Dough Docker Docker Dough Bubble killer Time-Saver Pizza Dough Roller Docker Dough Blistering Killer, Pizza Docker Roller for Home Kitchen, Pizza Making Accessories, Pizza Docking Tool
9 Docker: Up & Running: Shipping Reliable Containers in Production

Docker: Up & Running: Shipping Reliable Containers in Production

BUY & SAVE
$44.73 $65.99
Save 32%
Docker: Up & Running: Shipping Reliable Containers in Production
10 5 pcs Pizza Tools Set incl Dough Roller and Docker and Silicone Pastry Dough Mat and Dough Scraper Cutter Time-Saver Dough Tools Set (5 pcs)

5 pcs Pizza Tools Set incl Dough Roller and Docker and Silicone Pastry Dough Mat and Dough Scraper Cutter Time-Saver Dough Tools Set (5 pcs)

  • ALL-IN-ONE SET: INCLUDES ESSENTIAL TOOLS FOR ALL YOUR DOUGH NEEDS!

  • SAFE & DURABLE: FOOD-GRADE MATERIALS ENSURE HEALTH AND LONGEVITY.

  • TIME SAVER: QUICK, EFFICIENT, AND EASY TO USE FOR EVERYONE!

BUY & SAVE
$16.99
5 pcs Pizza Tools Set incl Dough Roller and Docker and Silicone Pastry Dough Mat and Dough Scraper Cutter Time-Saver Dough Tools Set (5 pcs)
+
ONE MORE?

To install Docker in Ubuntu, follow these steps:

  1. Update the package index by running the command: sudo apt update
  2. Install the necessary packages to allow apt to use a repository over HTTPS: sudo apt install apt-transport-https ca-certificates curl software-properties-common
  3. Import Docker’s official GPG key using the following command: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  4. Add the Docker repository to your system sources: echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  5. Update the package index again: sudo apt update
  6. Install Docker by running the command: sudo apt install docker-ce docker-ce-cli containerd.io
  7. Verify that Docker is installed correctly by running the following command, which should output the Docker version: docker --version
  8. Additionally, you may want to run Docker without sudo by adding your user to the "docker" group: sudo usermod -aG docker $USER
  9. After adding your user to the "docker" group, you will need to log out and back in for the changes to take effect.

That's it! Docker is now successfully installed on your Ubuntu system.

Is it possible to install Docker in a specific directory in Ubuntu?

Yes, it is possible to install Docker in a specific directory in Ubuntu. By default, Docker is installed in the root directory "/var/lib/docker". However, you can choose a different directory during the installation process.

To install Docker in a specific directory, follow these steps:

  1. Update the system packages:

sudo apt update

  1. Install Docker dependencies:

sudo apt install apt-transport-https ca-certificates curl software-properties-common

  1. Add the Docker repository key:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

  1. Add the Docker repository:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

  1. Update the system packages again:

sudo apt update

  1. Install Docker:

sudo apt install docker-ce docker-ce-cli containerd.io

  1. Stop the Docker service:

sudo systemctl stop docker

  1. Create a directory to store the Docker data:

sudo mkdir /path/to/directory

  1. Modify the Docker service options:

sudo nano /lib/systemd/system/docker.service

  1. Add the following line to the '[Service]' section, replacing "/path/to/directory" with the desired directory path:

ExecStart=/usr/bin/dockerd -g /path/to/directory

  1. Save the file and exit the editor.
  2. Reload the systemd configuration:

sudo systemctl daemon-reload

  1. Start the Docker service:

sudo systemctl start docker

Now, Docker will be installed and configured to use the specified directory for storing its data.

How do I start and stop the Docker service in Ubuntu?

To start and stop the Docker service in Ubuntu, follow these steps:

  1. Open a terminal.
  2. Start the Docker service by running the following command: sudo service docker start
  3. To check the status of the Docker service, you can run the following command: sudo service docker status This will display if the service is running or not.
  4. To stop the Docker service, use the following command: sudo service docker stop This will stop the Docker service and any running containers.

Note: If you are using a newer version of Ubuntu (e.g., Ubuntu 20.04 or later) that uses systemd as the init system, you can use the following commands instead:

  • Start Docker: sudo systemctl start docker
  • Check Docker status: sudo systemctl status docker
  • Stop Docker: sudo systemctl stop docker

How do I uninstall Docker from Ubuntu?

To uninstall Docker from Ubuntu, you can follow these steps:

  1. First, open a terminal window.
  2. Stop any running Docker containers by executing the following command: sudo docker stop $(sudo docker ps -a -q)
  3. Remove all Docker containers from your system with the command: sudo docker rm $(sudo docker ps -a -q)
  4. Next, uninstall the Docker package by running the following command: sudo apt-get purge docker-ce docker-ce-cli containerd.io
  5. To remove all Docker images, volumes, and other leftover files, execute: sudo rm -rf /var/lib/docker
  6. If you have any specific Docker-related configurations or directories, remove them as well.
  7. Finally, to remove the Docker repository from the list of repositories on your system, run: sudo rm /etc/apt/sources.list.d/docker.list

Now you have successfully uninstalled Docker from your Ubuntu system.

Is it necessary to install additional packages or dependencies for Docker in Ubuntu?

No, it is not necessary to install additional packages or dependencies for Docker in Ubuntu, as Docker comes with a pre-built package for Ubuntu that includes all the necessary dependencies. However, depending on your specific use case, you may need to install additional packages or dependencies for Docker, such as specific Docker images or network utilities.

The recommended method for installing Docker in Ubuntu is to use the Docker official installation script. Here are the steps to install Docker:

  1. Update the local package index:

sudo apt-get update

  1. Install required packages to use HTTPS:

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

  1. Add the Docker official GPG key:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  1. Add the Docker repository to APT sources:

For x86_64/amd64 architecture:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

For armhf architecture:

sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

  1. Update the package index again:

sudo apt-get update

  1. Install the latest version of Docker CE (Community Edition):

sudo apt-get install docker-ce

  1. Verify that Docker is installed correctly by running the "hello-world" image:

sudo docker run hello-world

This will pull a test image and run it in a container. If everything is set up correctly, you should see a "Hello from Docker!" message.