1

I have the following devcontainer configuration:

{
    "name": "[Dev] MyDevContainer",
    "dockerComposeFile": ["../docker-compose-dev.yml"],
    "runArgs": [
       "--network=host"
     ],
    "service": "orchestrator",
    "workspaceFolder": "/workdir",
    "postCreateCommand": "sudo ./build.sh",
    
    "customizations": {
        "vscode": {
            "extensions": [
                "GitHub.vscode-pull-request-github",
                "databricks.databricks",
                "github.copilot",
                "github.copilot-chat",
                "mechatroner.rainbow-csv",
                "ms-python.vscode-pylance",
                "ms-python.pylint",
                "ms-python.python",
                "ms-python.debugpy",
                "mhutchie.git-graph",               
                "paiqo.databricks-vscode",
                "redhat.vscode-yaml"
            ]
        }
    }
}

My docker compose is:

version: '3.8'

services:
  myapp_orchestrator:
    depends_on:
      - myapp_mq
    volumes:
      - .:/myapp
    image: mcr.microsoft.com/devcontainers/python
    tty: true
    networks:
      - myapp_network
    ports:
      - "${MYAPP_APP_PORT_1}:${MYAPP_APP_PORT_1}"
      - "${MYAPP_APP_PORT_2}:${MYAPP_APP_PORT_2}"
    environment:
      - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
      - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFApULT_PASS}
      - RABBITMQ_PORT_1=${RABBITMQ_PORT_1}
      - RABBITMQ_PORT_2=${RABBITMQ_PORT_2}
      - RABBITMQ_HOST=${RABBITMQ_HOST}
      - BUILD_ENV="dev"
    secrets:
      - adb_server_hostname
      - adb_http_path
      - adb_access_token
      - rabbitmq_default_user
      - rabbitmq_password

  myapp_etls:
    depends_on:
      - myapp_mq
    volumes:
      - .:/myapp
      - ~/.gitconfig:/root/.gitconfig:ro
    image: mcr.microsoft.com/devcontainers/python
    tty: true
    networks:
      - myapp_network
    ports:
      - "${MYAPP_ETLS_PORT_1}:${MYAPP_ETLS_PORT_1}"
      - "${MYAPP_ETLS_PORT_2}:${MYAPP_ETLS_PORT_2}"
    environment:
      - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
      - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
      - RABBITMQ_PORT_1=${RABBITMQ_PORT_1}
      - RABBITMQ_PORT_2=${RABBITMQ_PORT_2}
      - RABBITMQ_HOST=${RABBITMQ_HOST}
      - BUILD_ENV="dev"
    secrets:
      - adb_server_hostname
      - adb_http_path
      - adb_access_token
      - rabbitmq_default_user
      - rabbitmq_password
        
  myapp_mq:
    image: rabbitmq:3-management
    ports:
      - "${RABBITMQ_PORT_1}:${RABBITMQ_PORT_1}"
      - "${RABBITMQ_PORT_2}:${RABBITMQ_PORT_2}"
    environment:
      - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
      - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
      - RABBITMQ_HOST=${RABBITMQ_HOST}
      - RABBITMQ_PORT_1=${RABBITMQ_PORT_1}
      - RABBITMQ_PORT_2=${RABBITMQ_PORT_2}
    networks:
      - myapp_network
    secrets:
      - rabbitmq_default_user
      - rabbitmq_password
    volumes:
      - ./myapp_comm:/myapp_comm
    command: ["/bin/sh", "/myapp_comm/start_myapp_mq.sh"]

networks:
  myapp_network:
    name: ${MYAPP_APP_NETWORK_NAME}
    driver: bridge
    driver_opts:
      com.docker.network.bridge.enable_icc: "true"
      com.docker.network.bridge.enable_ip_masquerade: "true"

secrets:
  adb_server_hostname:
    external: false
    environment: ADB_SERVER_HOSTNAME
  adb_http_path:
    external: false
    environment: ADB_HTTP_PATH
  adb_access_token:
    external: false
    environment: ADB_ACCESS_TOKEN
  rabbitmq_default_user:
    external: false
    environment: RABBITMQ_DEFAULT_USER
  rabbitmq_password:
    external: false
    environment: RABBITMQ_DEFAULT_PASS

Any my user settings are:

{
    "telemetry.telemetryLevel": "off",
    "github.copilot.advanced": {},
    "http.proxy": "http://org.proxy.com:8080",
    "http.proxyStrictSSL": false
}

However, I get this error:

[570601 ms] [01:03:30] #24: https://main.vscode-cdn.net/extensions/marketplace.json - error GET connect ETIMEDOUT 13.107.246.71:443
[01:03:30] #23: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST connect ETIMEDOUT 13.107.42.18:443
[575718 ms] [01:03:35] #25: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST connect ETIMEDOUT 13.107.42.18:443
[01:03:35] #26: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST connect ETIMEDOUT 13.107.42.18:443
[591077 ms] [01:03:50] #27: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST connect ETIMEDOUT 13.107.42.18:443

What should I be doing differently to resolve this issue?

2
  • 1
    Can you hit those urls in your browser? With and without that proxy setting? Commented May 7 at 1:56
  • Yes, I can reach the URLs from the browser. Both with and without proxy. Commented May 7 at 2:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.