Olá,
Estou tentando configurar o docker em um ambiente Windows 10. Já adicionei as seguintes configurações:
{
  "auths": {
    "https://index.docker.io/v1/": {}
  },
  "credsStore": "desktop",
  "currentContext": "default",
  "proxies": {
    "default": {
      "httpProxy": "http://username:password@localhost:port",
      "httpsProxy": "http://username:password@localhost:port",
      "noProxy": "localhost,127.0.0.1"
    }
  }
}
que se encontra no arquivo C:\Users\username\.docker\config.json porém quando eu executo o comando  docker-compose up eu obtenho o seguinte erro : 
2023/12/28 10:21:42 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
[+] Building 0.3s (6/6) FINISHED                                                                                                                                   docker:default
 => [app1 internal] load build definition from dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 205B                                                                                                                                         0.0s
 => [app1 internal] load .dockerignore                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                              0.0s
 => [app2 internal] load .dockerignore                                                                                                                                       0.1s
 => => transferring context: 2B                                                                                                                                              0.0s
 => [app2 internal] load build definition from dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 205B                                                                                                                                         0.0s
 => ERROR [app2 internal] load metadata for docker.io/library/tomcat:9-jdk8-openjdk-slim                                                                                     0.2s
 => [app1 auth] library/tomcat:pull token for registry-1.docker.io                                                                                                           0.0s
------
 > [app2 internal] load metadata for docker.io/library/tomcat:9-jdk8-openjdk-slim:
------
failed to solve: tomcat:9-jdk8-openjdk-slim: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": Proxy Authentication Required
os arquivos é docker:
version: '3'
services:
  app1:
    build:
      context: ./app1
    ports:
      - "8081:8080"  # Mapeia a porta 8080 do contêiner para a porta 8081 do host
    environment:
      - HTTP_PROXY=http://username:password@localhost:port
      - HTTPS_PROXY=http://username:password@localhost:port
      - NO_PROXY=localhost,127.0.0.1
  app2:
    build:
      context: ./app2
    ports:
      - "8082:8080"  # Mapeia a porta 8080 do contêiner para a porta 8082 do host
    environment:
      - HTTP_PROXY=http://username:password@localhost:port
      - HTTPS_PROXY=http://username:password@localhost:port
      - NO_PROXY=localhost,127.0.0.1