DEV Community

TechFixDocs
TechFixDocs

Posted on • Originally published at techfixdocs.my.id

How to Fix: Docker - Error starting daemon

Docker error starting daemon: package not installed. Run daemon with apt-get install -y docker-ce.

The Problem

The 'Error starting daemon: Error initializing network controller: Error creating default 'bridge' network: package not installed' error occurs when Docker is unable to create its own virtual network bridge. This affects users who have installed Docker on Arch Linux and are trying to start a new container.This error can be frustrating as it prevents the user from running containers, which is a crucial aspect of Docker's functionality. However, by following these steps, you should be able to resolve this issue and get Docker up and running.
⚠️ Common Causes

                The primary reason for this error is that the 'bridge' network package is not installed on your system. The 'bridge' network is a fundamental component of Docker's networking functionality, allowing containers to communicate with each other and the host machine.An alternative cause could be that the 'bridge' network package is available but not enabled by default in Arch Linux.

            🚀 How to Resolve This Issue

                Enabling the 'bridge' network package

                    Step 1: Step 1: Open a terminal on your Raspberry Pi and update the package list using the command 'sudo pacman -Syu'. This will ensure that you have the latest package versions installed.Step 2: Step 2: Install the 'bridge' network package using the command 'sudo pacman -S docker-registry'. Note that this will also install Docker's registry component, which is required for Docker to function properly.Step 3: Step 3: Restart the Docker service to apply the changes. Use the command 'sudo systemctl restart docker' to do so.



                Enabling the 'bridge' network package via system configuration

                    Step 1: Step 1: Open the Arch Linux system configuration file using a text editor. You can do this by running the command 'sudo nano /etc/pacman.conf'.


            💡 Conclusion
            By following these steps, you should be able to resolve the 'Error starting daemon' issue and get Docker up and running on your Raspberry Pi. If you encounter any further problems, consider seeking additional support from the Docker community or Arch Linux forums.
Enter fullscreen mode Exit fullscreen mode

Full step-by-step guide with screenshots: Read the complete fix here

Found this helpful? Check out more verified tech fixes at TechFixDocs

Top comments (0)