OneBite.Dev - Coding blog in a bite size

start docker daemon

Simple docker step by step how to start docker daemon with explanation

Starting and using Docker daemon can significantly streamline your containerization activities. Here’s a simple tutorial on how to start a Docker daemon.

What is Docker Daemon ?

Docker daemon is a persistent background process that manages Docker containers. It is crucial for running any Docker commands.

Prerequisites

Before starting, ensure that Docker is installed on your computer. If it’s not the case, please download and install Docker from the official Docker page.

Steps to Start Docker Daemon

1 Open Terminal

No matter what operating system you are using, the Docker daemon is always initiated from the terminal or command line interface.

2 Start Docker Service

From the terminal, the Docker service can be started using a simple command.

On a Linux-based operating system, type the following command:

```bash
sudo systemctl start docker
```

On Windows, you utilize the Docker Desktop application to start the Docker service. Simply search for Docker Desktop in the Start menu and press ‘Enter’ to launch it.

For macOS users, Docker service is started via Docker Desktop for Mac, which can be found in the Applications folder.

3 Enable Docker Service

It might be required to enable Docker to start on boot to avoid manually starting it every time you reboot. This setting is optional but could save you a lot of time.

On Linux, you can use:

```bash
sudo systemctl enable docker
```

For both Windows and macOS, this setting can be found on Docker Desktop settings or preferences.

4 Verify your Setup

After you’ve started and optionally enabled Docker, it’s advised to verify that everything is up and running. By listing Docker version or Docker info, you can check whether Docker is running properly or not.

To check Docker version, simply type:

```bash
docker --version
```

For Docker information use:

```bash
docker info
```

Both commands will return detailed information about your Docker environment if everything is functioning properly.

In a nutshell, starting the Docker daemon is a straightforward activity that’s executed from the terminal (or via a desktop application for Windows and macOS users). Furthermore, enabling Docker to start on boot may ensure a more convenient user experience. In case of any trouble, verifying your setup can help you troubleshoot and verify your Docker environment.

docker