Docker windows container memory limit

According to talks on Docker for windows Github issues (https://github.com/moby/moby/issues/31604), when Docker for Windows is run under Windows 10, it is actually using a Hyper-V isolation model (and process model is not accessible in Win 10 scenario). And in that isolation type, your container is run inside a lightweight VM, which DOES have a default … Read more

Error: “Failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest” when building a Docker image

The cause was simple. I had my Docker desktop running on Linux containers and the image was build from a Windows image. Simply switching to Windows containers solved the problem. The message is clueless, so I hope this save some time for others.

docker-compose container name use dash (-) instead of underscore (_)

This naming convention difference appears to be a difference between Docker Compose versions v1 (Python) and v2 (Go). The latest docker/compose repo that is packaged with Docker Desktop is the golang version in the docker/compose v2 branch. Looking at the source code here in this branch: // Separator is used for naming components var Separator … Read more

Docker Desktop doesn’t install saying docker-ce-cli not installable

You don’t need to install Docker Engine alongside Docker Desktop unless you really need it. Docker’s documentation clearly states: Docker Desktop for Linux and Docker Engine can be installed side-by-side on the same machine. Using a dedicated storage location for Docker Desktop prevents it from interfering with a Docker Engine installation on the same machine. … Read more

What is the docker-desktop-data distro used for when running docker desktop with the WSL 2 engine

The docker-desktop-data distro is used by the docker-desktop distro as the backing store for container images etc. When docker is run under Hyper-V the same result is achieved by mounting a VHD in the Hyper-V image but this isn’t possible with WSL2. To quote from the docker blog introducing the new wsl2 backend: This will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)