Problems trying to run Docker Desktop on Ubuntu 20.04.4 LTS
I followed the instructions on how to install Docker Desktop. When I start it. It says Docker Desktop stopped and engine not started.
The Docker Diagnostics ID is:
I’m not sure on how to fix it. This is a new install of ubuntu 20.04 with only docker desktop installed.
2 Answers 2
Have you check the dependencies on the Docker Desktop linux install pages? There are a few. Not least of which is that this only runs under gnome or KDE. Check your environment with:
I can’t help you further. I am using XFCE so its quite probable it wont work for me. Also, I have production code running in Docker and I reallly don’t want to mess with it.
Docker Failed To Initialize Docker Desktop Is Shutting Down, A Guide On Why Docker Failed to Initialize
Docker Desktop integrates with your preferred development tools and languages, as well as provides access to Docker Hub’s extensive library of verified images and templates. This allows development teams to extend their environment by leveraging a secure repository to quickly auto-build, continually integrate, and interact.
Docker Failed To Initialize
Docker is also known as Docker Platform, which is an open platform for creating, shipping, and executing applications. Docker desktop’s purpose is to provide a simple development environment for creating, distributing, and operating dockerized programmes. This is a means to implement the Twelve Factor App guideline’s Environment Parity and close the resource gap between development and production environments. As a result, a containerized application may be operated in your environment in the same way it is in production.
Docker Failed To Initialize Docker Desktop Is Shutting Down
Docker should be removed from the «Add or remove programmes» list.
Start your computer again.
If the installer prompts you to reboot, go ahead and do so. Docker Desktop for Windows should now launch and operate your containers as planned.
Docker Failed To Initialize Docker Desktop Is Shutting Down Windows 10
Start Docker Services
Turn on Hyper-V and Containers.
In Windows search, type Windows Feature and then click Turn Windows features on or off.
Select Containers and Hyper-V as shown below, then click OK.
Docker Failed To Initialize Docker Desktop Is Shutting Down — FAQs
Docker Desktop is an easy-to-install application for your Mac or Windows environment that enables you to build and share containerized applications and microservices.
It enables developers to package applications into containers.
Yes, Docker could help solve some challenges associated with desktop apps.
Docker containers are, by default, quite secure; especially if you run your processes as non-privileged users inside the container.
Docker allows you to break down your application into smaller services.
Docker is an open source software platform to create, deploy and manage virtualized application containers on a common operating system
Troubleshooting Docker
Shows some troubleshooting techniques to use when you work with Sitecore and Docker.
This topic has advice for troubleshooting problems with Docker Desktop for Windows and Docker-based Sitecore development. Docker tools and resources links to a number of resources and community sites where you can also find troubleshooting discussions.
General troubleshooting steps
Check the logs: The logs are the first place to look. Depending on the issue, check the logs of a container or the engine logs. For accessing container logs, see the Sitecore Docker cheat sheet. You can also view logs in the Docker Desktop (Dashboard) and with the other tools listed above.
For Sitecore CM and CD images, not all built-in Sitecore log files stream by default. You can add them to the LogMonitor config ( c:\LogMonitor\LogMonitorConfig.json ), but this might result in excessive output. It is helpful to bind mount the Sitecore log folder, as seen in the Docker Examples repository:
The Docker engine (daemon) logs are at C:\Users\%USERNAME%\AppData\Local\Docker .
Restart Docker Desktop: Restarting the Docker Desktop often resolves an issue. You can restart with the Docker item (the whale icon) in the Windows system tray.
Clean mapped volume data: If your containers use mapped volumes for persistent storage, your issue can be come from stale data in these folders. The default Sitecore configuration enables this for the mssql and solr services. Make sure your instance is down (i.e. docker-compose down ), then delete files in the mounted folders manually or with a clean script (see the clean.ps1 examples in the the Docker Examples repository).
Prune Docker resources: If you have not done so recently, clean up unused Docker resources. This is a good daily habit to get into, at minimum, to free up disk space:
Restart PC: A system reboot can solve some problems.
Upgrade to latest Docker Desktop for Windows: Docker is continuously releasing new versions of Docker Desktop for Windows with bug fixes and improvements. You can check for updates using the Docker item (whale icon) in the Windows system tray.
Reset Docker Desktop to factory defaults: This resets all options of Docker Desktop to their initial state, the same as when Docker Desktop was first installed. You can do this from the Troubleshoot option of the Docker item (whale icon) in the Windows system tray.
#Windows10 – How to solve “#docker daemon is not running”. Extreme solutions like restart windows won’t work!
Time to share a weird experience on Windows 10 and Docker. Sometimes, usually after some Windows 10 update or even after a software installation, docker stop responding.
An typical error may look like this.
From Visual Studio Code we get:

And it’s very weird. When I check the Docker desktop app, it’s stuck in the the STARTING state.

I can restart the docker desktop app, and I will still have the issue. As I said, weird.
I’m a handy man, so I decided to restart the docker service. Just 2 commands:
However, this does not solve the problem. And sometimes, even restarting Windows won’t fix the problem.
After some time, I found the root cause:
Somehow WSL was set to version 1 instead of version 2.
I’m not sure why, however the solution is super easy. Just run a command to set WSL to version 2 and then restart docker service.
If you are a visual person, this may look like this:

Important: you need to run these commands with Administrator privileges. So in a Windows Terminal world, this may also look like this. Right click on the Windows Terminal App, and click on “Run as administrator”.

More posts in my blog ElBruno.com.

¿Con ganas de ponerte al día?
En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría: