title: How can I stop the docker engine running integrated on WSL2 from the command line?
body: <p>I run WSL2 on Windows with an Ubuntu distribution inside WSL, and Docker desktop using the integrated &quot;WSL2-based engine&quot;.</p>
  <p>If I do <code>wsl --shutdown</code> in the CLI, Docker Desktop complains about the backend shutting down unexpectedly.</p>
  <p>What command should I issue before the <code>wsl --shutdown</code> to shutdown the Docker engine without danger of loosing data?</p>