Answers: <p>When you uninstall <code>Docker Desktop for Windows</code>, you lose all <code>exe</code> files - including <code>docker-credential-desktop.exe</code>. But you still need a credentials-store for the <code>docker login</code> part.</p>
  <p>As written in the <a href="https://docs.docker.com/engine/reference/commandline/login/#credentials-store" rel="nofollow noreferrer">docs</a> there are several alternatives.</p>
  <p>I found, that <code>pass</code> works. The D-BUS plugin seems to be easier to configure, but apparently requires a graphical interface.</p>
  <p>So download <code>docker-credential-pass-vx.y.z-amd64.tar.gz</code> from the <a href="https://github.com/docker/docker-credential-helpers/releases" rel="nofollow noreferrer">Docker's git repo</a>, extract it (<code>tar xvf &lt;file&gt;</code>), put it in your path like <code>sudo mv docker-credential-pass /usr/local/bin/</code>, make sure it is executable (<code>chmod a+x docker-credential-pass</code>) and test it with <code>docker-credential-pass list</code>. It requires you to have a configured <a href="https://www.passwordstore.org/" rel="nofollow noreferrer">instance</a> of <code>pass</code> - test with <code>pass list</code>.</p>
  <p>Then check the docker-config at <code>$HOME/.docker/config.json</code> to make sure it uses <code>pass</code>:</p>
  <pre><code>  &quot;credsStore&quot;: &quot;pass&quot;
  </code></pre>
  <p>That made my escape from the license-fee complete.</p>
  
Answers: CC BY-SA 4.0
Answers: 2022-07-08T11:20:42.317Z
Answers: thank you man! I was struggling with this problem
Answers: lorenzo
Answers: CC BY-SA 4.0
Answers: 2022-01-18T16:08:39.783Z
Answers: 2022-01-18T16:08:39.783Z
Answers: Chris
Body: <p>Moving from <code>Docker Desktop for Windows</code> to <code>Docker Server / CLI for Linux</code> to escape the license fee, I used the <a href="https://docs.docker.com/engine/install/ubuntu/" rel="nofollow noreferrer">standard documentation</a> for Ubuntu to install docker into my <code>WSL2</code>.</p>
  <p>After frankensteining it that way, <code>docker</code> itself seemed to run okay, but <code>docker-compose</code> was broken.</p>
  <pre><code>user@COMPUTER:~/git/project/rest_backend$ docker-compose up --build 
  Pulling postgres (gitlab-int.company.de/team/dependency_proxy/containers/postgres:latest)...
  Traceback (most recent call last):
    File &quot;bin/docker-compose&quot;, line 6, in &lt;module&gt;
    File &quot;compose/cli/main.py&quot;, line 72, in main
    File &quot;compose/cli/main.py&quot;, line 128, in perform_command
    File &quot;compose/cli/main.py&quot;, line 1077, in up
    File &quot;compose/cli/main.py&quot;, line 1073, in up
    File &quot;compose/project.py&quot;, line 548, in up
    File &quot;compose/service.py&quot;, line 361, in ensure_image_exists
    File &quot;compose/service.py&quot;, line 1250, in pull
    File &quot;compose/progress_stream.py&quot;, line 102, in get_digest_from_pull
    File &quot;compose/service.py&quot;, line 1215, in _do_pull
    File &quot;site-packages/docker/api/image.py&quot;, line 396, in pull
    File &quot;site-packages/docker/auth.py&quot;, line 48, in get_config_header
    File &quot;site-packages/docker/auth.py&quot;, line 324, in resolve_authconfig
    File &quot;site-packages/docker/auth.py&quot;, line 235, in resolve_authconfig
    File &quot;site-packages/docker/auth.py&quot;, line 262, in _resolve_authconfig_credstore
    File &quot;site-packages/docker/auth.py&quot;, line 287, in _get_store_instance
    File &quot;site-packages/docker/credentials/store.py&quot;, line 25, in __init__
  docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not available in PATH
  [323] Failed to execute script docker-compose
  </code></pre>
  <p>How to fix this error?</p>
  
Tags: <docker><linux>
Title: docker-credential-desktop.exe not installed
UserDisplayName: Chris
ThreadText: # docker-credential-desktop.exe not installed
  
  (Asked by: username_0 on 2022-01-18)
  
  Moving from `Docker Desktop for Windows` to `Docker Server / CLI for Linux` to escape the license fee, I used the [standard documentation](https://docs.docker.com/engine/install/ubuntu/) for Ubuntu to install docker into my `WSL2`.
  
  After frankensteining it that way, `docker` itself seemed to run okay, but `docker-compose` was broken.
  
  ```
  user@COMPUTER:~/git/project/rest_backend$ docker-compose up --build 
  Pulling postgres (gitlab-int.company.de/team/dependency_proxy/containers/postgres:latest)...
  Traceback (most recent call last):
    File "bin/docker-compose", line 6, in <module>
    File "compose/cli/main.py", line 72, in main
    File "compose/cli/main.py", line 128, in perform_command
    File "compose/cli/main.py", line 1077, in up
    File "compose/cli/main.py", line 1073, in up
    File "compose/project.py", line 548, in up
    File "compose/service.py", line 361, in ensure_image_exists
    File "compose/service.py", line 1250, in pull
    File "compose/progress_stream.py", line 102, in get_digest_from_pull
    File "compose/service.py", line 1215, in _do_pull
    File "site-packages/docker/api/image.py", line 396, in pull
    File "site-packages/docker/auth.py", line 48, in get_config_header
    File "site-packages/docker/auth.py", line 324, in resolve_authconfig
    File "site-packages/docker/auth.py", line 235, in resolve_authconfig
    File "site-packages/docker/auth.py", line 262, in _resolve_authconfig_credstore
    File "site-packages/docker/auth.py", line 287, in _get_store_instance
    File "site-packages/docker/credentials/store.py", line 25, in __init__
  docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not available in PATH
  [323] Failed to execute script docker-compose
  
  ```
  
  How to fix this error?
  
  **Tags:** docker, linux
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-01-18. Score: 2
  
  When you uninstall `Docker Desktop for Windows`, you lose all `exe` files - including `docker-credential-desktop.exe`. But you still need a credentials-store for the `docker login` part.
  
  As written in the [docs](https://docs.docker.com/engine/reference/commandline/login/#credentials-store) there are several alternatives.
  
  I found, that `pass` works. The D-BUS plugin seems to be easier to configure, but apparently requires a graphical interface.
  
  So download `docker-credential-pass-vx.y.z-amd64.tar.gz` from the [Docker's git repo](https://github.com/docker/docker-credential-helpers/releases), extract it (`tar xvf <file>`), put it in your path like `sudo mv docker-credential-pass /usr/local/bin/`, make sure it is executable (`chmod a+x docker-credential-pass`) and test it with `docker-credential-pass list`. It requires you to have a configured [instance](https://www.passwordstore.org/) of `pass` - test with `pass list`.
  
  Then check the docker-config at `$HOME/.docker/config.json` to make sure it uses `pass`:
  
  ```
    "credsStore": "pass"
  
  ```
  
  That made my escape from the license-fee complete.
  
  > **Comments:**
  > **username_1**: thank you man! I was struggling with this problem  
  
  ---
  
  