Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker can't start successfully due to its port forwarding? #13686

Closed
greenhat616 opened this issue Sep 20, 2023 · 8 comments
Closed

Docker can't start successfully due to its port forwarding? #13686

greenhat616 opened this issue Sep 20, 2023 · 8 comments

Comments

@greenhat616
Copy link

Description

After upgraded to WSL 2 v2.0.0, and enabled mirrorred network.
Docker can't start successfully due to its port forwarding?

docker compose up -d mysql5
[+] Running 2/2
 ✔ Network dnmp_default  Created                                                                                   0.1s
 ✔ Container mysql5      Created                                                                                   0.1s
Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:3305 -> 0.0.0.0:0: listen tcp 127.0.0.1:3305: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Reproduce

  1. docker compose up -d mysql5
  2. docker start mysql5

Expected behavior

Docker should start as normal

docker version

docker version
Client: Docker Engine - Community
 Cloud integration: v1.0.35+desktop.4
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:16 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Desktop
 Engine:
  Version:          master
  API version:      1.44 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       8dfaf0c780630c4f3a6ee51b324bdf50b36e2bb3
  Built:            Thu Aug 31 17:55:12 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

docker info
Client: Docker Engine - Community
 Version:    24.0.6
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2-desktop.4
    Path:     /usr/local/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0-desktop.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.20
    Path:     /usr/local/lib/docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.7
    Path:     /usr/local/lib/docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-sbom
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-scan
  scout: Command line tool for Docker Scout (Docker Inc.)
    Version:  0.24.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-scout

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 8
 Server Version: 24.0.6
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
 runc version: v1.1.8-0-g82f18fe
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 5.15.123.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 15.54GiB
 Name: docker-desktop
 ID: d1d83f56-e39d-4d15-af73-91abb35213f4
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

Diagnostics ID

5A8256FC-1ECE-45CA-8348-C4BC81F3837C/20230920053355

Additional Info

Key docker compose config:

version: "3"
services:
  nginx:
    build:
      context: ./services/nginx
      args:
        NGINX_VERSION: nginx:${NGINX_VERSION}
        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
        NGINX_INSTALL_APPS: ${NGINX_INSTALL_APPS}
    container_name: nginx
    ports:
      - "${NGINX_HTTP_HOST_PORT}:80"
      - "81:81"
      - "8088:8088"
      - "${NGINX_HTTPS_HOST_PORT}:443"
    volumes:
      - ${SOURCE_DIR}:/www/:rw
      - ${NGINX_SSL_CERTIFICATE_DIR}:/ssl:rw
      - ${NGINX_CONFD_DIR}:/etc/nginx/conf.d/:rw
      - ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf:ro
      - ${NGINX_FASTCGI_PHP_CONF}:/etc/nginx/fastcgi-php.conf:ro
      - ${NGINX_FASTCGI_PARAMS}:/etc/nginx/fastcgi_params:ro
      - ${NGINX_LOG_DIR}:/var/log/nginx/:rw
    environment:
      TZ: "$TZ"
    restart: always
    networks:
      - default
      # 可以把-default 改成下列配置,以固定容器IP
      #default:
      #  ipv4_address: 10.0.0.10

  php:
    build:
      context: ./services/php
      args:
        PHP_VERSION: php:${PHP_VERSION}-fpm-alpine
        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
        PHP_EXTENSIONS: ${PHP_EXTENSIONS}
        TZ: "$TZ"
    container_name: php
    ports:
      - "9503:8000"
      - "9502:9502"
      - "9111:9111"
    expose:
      - 9000
      - 9501
      - 20108
    extra_hosts:
      - "www.site1.com:172.17.0.1"
    volumes:
      - ${SOURCE_DIR}:/www/:rw
      - ${PHP_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
      - ${PHP_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
      - ${PHP_LOG_DIR}:/var/log/php
      - ${DATA_DIR}/composer:/tmp/composer
    restart: always
    cap_add:
      - SYS_PTRACE
    networks:
      - default

  # php81:
  #   build:
  #     context: ./services/php81
  #     args:
  #       PHP_VERSION: php:${PHP81_VERSION}-fpm-alpine3.16
  #       CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
  #       PHP_EXTENSIONS: ${PHP81_EXTENSIONS}
  #       TZ: "$TZ"
  #   container_name: php81
  #   ports:
  #     - "9504:8000"
  #     - "9505:9502"
  #   expose:
  #     - 9000
  #     - 9501
  #   volumes:
  #     - ${SOURCE_DIR}:/www/:rw
  #     - ${PHP81_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
  #     - ${PHP81_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
  #     - ${PHP81_LOG_DIR}:/var/log/php
  #     - ${DATA_DIR}/composer:/tmp/composer
  #   restart: always
  #   cap_add:
  #     - SYS_PTRACE
  #   networks:
  #     - default

  php82:
    build:
      context: ./services/php82
      args:
        PHP_VERSION: php:${PHP82_VERSION}-fpm-alpine3.18
        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
        PHP_EXTENSIONS: ${PHP82_EXTENSIONS}
        TZ: "$TZ"
    container_name: php82
    ports:
      - "9504:8000"
      - "9505:9502"
    expose:
      - 9000
      - 9501
    volumes:
      - ${SOURCE_DIR}:/www/:rw
      - ${PHP82_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
      - ${PHP82_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
      - ${PHP82_LOG_DIR}:/var/log/php
      - ${DATA_DIR}/composer:/tmp/composer
    restart: always
    cap_add:
      - SYS_PTRACE
    networks:
      - default

#  php80:
#    build:
#      context: ./services/php80
#      args:
#        PHP_VERSION: php:${PHP80_VERSION}-fpm-alpine3.13
#        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
#        PHP_EXTENSIONS: ${PHP80_EXTENSIONS}
#        TZ: "$TZ"
#    container_name: php80
#    expose:
#      - 9501
#    volumes:
#      - ${SOURCE_DIR}:/www/:rw
#      - ${PHP80_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
#      - ${PHP80_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
#      - ${PHP80_LOG_DIR}:/var/log/php
#      - ${DATA_DIR}/composer:/tmp/composer
#    restart: always
#    cap_add:
#      - SYS_PTRACE
#    networks:
#      - default

#  php56:
#    build:
#      context: ./services/php
#      args:
#        PHP_VERSION: php:${PHP56_VERSION}-fpm-alpine
#        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
#        PHP_EXTENSIONS: ${PHP56_EXTENSIONS}
#        TZ: "$TZ"
#    container_name: php56
#    expose:
#      - 9501
#    volumes:
#      - ${SOURCE_DIR}:/www/:rw
#      - ${PHP56_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
#      - ${PHP56_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
#      - ${PHP56_LOG_DIR}:/var/log/php
#      - ${DATA_DIR}/composer:/tmp/composer
#    restart: always
#    cap_add:
#      - SYS_PTRACE
#    networks:
#      - default
#
#  php54:
#    build:
#      context: ./services/php54
#      args:
#        PHP_VERSION: php:${PHP54_VERSION}-fpm
#        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
#        PHP_EXTENSIONS: ${PHP54_EXTENSIONS}
#        TZ: "$TZ"
#    container_name: php54
#    volumes:
#      - ${SOURCE_DIR}:/www/:rw
#      - ${PHP54_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
#      - ${PHP54_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
#      - ${PHP54_LOG_DIR}:/var/log/php
#      - ${DATA_DIR}/composer:/tmp/composer
#    restart: always
#    cap_add:
#      - SYS_PTRACE
#    networks:
#      - default

  mysql:
    image: mysql/mysql-server:${MYSQL_VERSION}
    container_name: mysql
    ports:
      - "${MYSQL_HOST_PORT}:3306"
    volumes:
    - ${MYSQL_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
    - ${DATA_DIR}/mysql:/var/lib/mysql/:rw
    restart: always
    networks:
      - default
    environment:
      MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
      MYSQL_ROOT_HOST: "${MYSQL_ROOT_HOST}"
      TZ: "$TZ"

  mysql5:
    image: mysql:${MYSQL5_VERSION}
    container_name: mysql5
    ports:
      - "127.0.0.1:${MYSQL5_HOST_PORT}:3306"
    volumes:
      - ${MYSQL5_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
      - ${DATA_DIR}/mysql5:/var/lib/mysql/:rw
    restart: always
    networks:
      - default
    environment:
      MYSQL_ROOT_PASSWORD: "${MYSQL5_ROOT_PASSWORD}"
      TZ: "$TZ"

  # mssql:
  #   image: "mcr.microsoft.com/mssql/server:${MSSQL_VERSION}-latest"
  #   container_name: mssql
  #   ports:
  #     - "${MSSQL_HOST_PORT}:1433"
  #   volumes:
  #   - ${DATA_DIR}/mssql/data:/var/opt/mssql/data
  #   - ./logs/mssql:/var/opt/mssql/log
  #   - ${DATA_DIR}/mssql/secrets:/var/opt/mssql/secrets
  #   environment:
  #     ACCEPT_EULA: "Y"
  #     SA_PASSWORD: "${MSSQL_SA_PASSWORD}"

#  openresty:
#    image:  openresty/openresty:${OPENRESTY_VERSION}
#    container_name: openresty
#    ports:
#       - "${OPENRESTY_HTTP_HOST_PORT}:80"
#       - "${OPENRESTY_HTTPS_HOST_PORT}:443"
#    volumes:
#       - ${SOURCE_DIR}:/www/:rw
#       - ${OPENRESTY_CONFD_DIR}:/etc/nginx/conf.d/:ro
#       - ${OPENRESTY_SSL_CERTIFICATE_DIR}:/ssl:rw
#       - ${OPENRESTY_CONF_FILE}:/usr/local/openresty/nginx/conf/nginx.conf:ro
#       - ${OPENRESTY_FASTCGI_PHP_CONF}:/usr/local/openresty/nginx/conf/fastcgi-php.conf:ro
#       - ${OPENRESTY_CONF_FASTCGIPARAMS_FILE}:/usr/local/openresty/nginx/conf/fastcgi_params:ro
#       - ${OPENRESTY_LOG_DIR}:/var/log/nginx/:rw
#    environment:
#      TZ: "$TZ"
#    networks:
#      - default

  redis:
    image: redis:${REDIS_VERSION}
    container_name: redis
    ports:
      - "${REDIS_HOST_PORT}:6379"
    volumes:
      - ${REDIS_CONF_FILE}:/etc/redis.conf:ro
      - ${DATA_DIR}/redis:/data/:rw
    restart: always
    entrypoint: ["redis-server", "/etc/redis.conf"]
    environment:
      TZ: "$TZ"
    networks:
      - default

#  memcached:
#    image: memcached:${MEMCACHED_VERSION}
#    container_name: memcached
#    ports:
#      - "${MEMCACHED_HOST_PORT}:11211"
#    environment:
#       MEMCACHED_CACHE_SIZE: "${MEMCACHED_CACHE_SIZE}"
#    networks:
#      - default

  rabbitmq:
    build:
      context: ./services/rabbitmq
      args:
        RABBITMQ_VERSION: ${RABBITMQ_VERSION}
        RABBITMQ_PLUGINS: ${RABBITMQ_PLUGINS}
    container_name: rabbitmq
    restart: always
    ports:
      - "${RABBITMQ_HOST_PORT_C}:5672"
      - "${RABBITMQ_HOST_PORT_S}:15672"
    environment:
      TZ: "$TZ"
      RABBITMQ_DEFAULT_USER: "${RABBITMQ_DEFAULT_USER}"
      RABBITMQ_DEFAULT_PASS: "${RABBITMQ_DEFAULT_PASS}"
    networks:
      - default

  phpmyadmin:
    image: phpmyadmin/phpmyadmin:latest
    container_name: phpmyadmin
    ports:
      - "${PHPMYADMIN_HOST_PORT}:80"
    volumes:
      - ${PHPMYADMIN_USER_CONF_FILE}:/etc/phpmyadmin/config.user.inc.php:ro
      - ${PHPMYADMIN_PHP_CONF_FILE}:/usr/local/etc/php/conf.d/php-phpmyadmin.ini:ro
    networks:
      - default
    environment:
      - PMA_HOST=mysql5
      - PMA_PORT=3306
      - TZ=$TZ

#  phpredisadmin:
#    image: erikdubbelboer/phpredisadmin:latest
#    container_name: phpredisadmin
#    ports:
#      - "${REDISMYADMIN_HOST_PORT}:80"
#    networks:
#      - default
#    environment:
#      - REDIS_1_HOST=redis
#      - REDIS_1_PORT=6379
#      - TZ=$TZ

#  mongodb:
#    image: mongo:${MONGODB_VERSION}
#    container_name: mongodb
#    environment:
#        MONGO_INITDB_ROOT_USERNAME: "${MONGODB_INITDB_ROOT_USERNAME}"
#        MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_INITDB_ROOT_PASSWORD}"
#        TZ: "$TZ"
#    volumes:
#      - ${DATA_DIR}/mongo:/data/db:rw
#      - ${DATA_DIR}/mongo_key:/mongo:rw
#    ports:
#       - "${MONGODB_HOST_PORT}:27017"
#    networks:
#       - default
#    command:
#       --auth

#  adminmongo:
#    image: mrvautin/adminmongo
#    container_name: adminmongo
#    ports:
#      - "${ADMINMONGO_HOST_PORT}:1234"
#    environment:
#      - HOST=0.0.0.0
#      - DB_HOST=mongodb
#      - DB_PORT=27017
#    networks:
#      - default

#  elasticsearch:
#    build:
#      context: ./services/elasticsearch
#      args:
#        ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
#        ELASTICSEARCH_PLUGINS: ${ELASTICSEARCH_PLUGINS}
#    container_name: elasticsearch
#    environment:
#      - TZ=$TZ
#      - discovery.type=single-node
#      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
#    volumes:
#      - ${DATA_DIR}/esdata:/usr/share/elasticsearch/data
#      - ${ELASTICSEARCH_CONF_FILE}:/usr/share/elasticsearch/config/elasticsearch.yml
#    hostname: elasticsearch
#    restart: always
#    ports:
#      - "${ELASTICSEARCH_HOST_PORT_C}:9200"
#      - "${ELASTICSEARCH_HOST_PORT_S}:9300"

#  kibana:
#    image: kibana:${KIBANA_VERSION}
#    container_name: kibana
#    environment:
#      TZ: "$TZ"
#      elasticsearch.hosts: http://elasticsearch:9200
#      I18N_LOCALE: "${KIBANA_I18N_LOCALE}"
#    hostname: kibana
#    depends_on:
#      - elasticsearch
#    restart: always
#    ports:
#      - "${KIBANA_HOST}:5601"

#  logstash:
#    image: logstash:${LOGSTASH_VERSION}
#    container_name: logstash
#    hostname: logstash
#    restart: always
#    depends_on:
#      - elasticsearch
#    environment:
#      TZ: "$TZ"
#    ports:
#      - "${LOGSTASH_HOST_PORT_C}:9600"
#      - "${LOGSTASH_HOST_PORT_S}:5044"

  # node:
  #   image: node:${NODE_VERSION}
  #   container_name: node
  #   environment:
  #     - NODE_ENV=production
  #   volumes:
  #     - ${SOURCE_DIR}:/www/:rw
  #   ports:
  #     - "8081:8081"
  #     - "2333:2333"
  #   networks:
  #     - default
  #   stdin_open: true
  #   tty: true


#  supervisor:
#    build:
#      context: ./services/supervisor
#      args:
#        ALPINE_VERSION: alpine:${ALPINE_VERSION}
#        TZ: "$TZ"
#        CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
#    container_name: supervisor
#    ports:
#      - "${SUPERVISOR_HOST_PORT_C}:9001"
#    volumes:
#      - ${SOURCE_DIR}:/www/:rw
#      - ${SUPERVISOR_LOG}:/var/log/supervisor/:rw
#      - ${SUPERVISOR_CONFIG}:/etc/supervisor/conf.d/:rw
#      - ${SUPERVISOR_CONF_FILE}:/etc/supervisor/supervisord.conf:ro
#    command:
#      - /bin/sh
#      - -c
#      - |
#        supervisord -n -c /etc/supervisor/supervisord.conf
#    restart: always
#    cap_add:
#      - SYS_PTRACE
#    networks:
#      - default

networks:
  default:
    driver: bridge
    ipam:
      driver: default
      # 解除下面的注释可以设置网段,用于nginx等容器固定容器IP
      config:
        - subnet: 10.0.0.0/24

Docker inspect info:

docker inspect mysql5
[
    {
        "Id": "888554c2509816e85dcc76d797eae1dde4093394b2c58ebb3cd7c0f1ccf6151a",
        "Created": "2023-09-20T05:32:50.300258329Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "mysqld"
        ],
        "State": {
            "Status": "created",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "0001-01-01T00:00:00Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:92034fe9a41f4344b97f3fc88a8796248e2cfa9b934be58379f3dbc150d07d9d",
        "ResolvConfPath": "",
        "HostnamePath": "",
        "HostsPath": "",
        "LogPath": "",
        "Name": "/mysql5",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/root/Container/dnmp/services/mysql5/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro",
                "/root/Container/dnmp/data/mysql5:/var/lib/mysql:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "dnmp_default",
            "PortBindings": {
                "3306/tcp": [
                    {
                        "HostIp": "127.0.0.1",
                        "HostPort": "3305"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/e3b6b6dfc059db01741ae0ce4f4adadc7fc43364e9ba175168d180826ee63894-init/diff:/var/lib/docker/overlay2/264ee69cb5bd5f9c72aa6d3be85e4d2c81398fffbf755f04390d0a1e7f8714e5/diff:/var/lib/docker/overlay2/171bb23015aa1d30f0754a4ba45feb246018993ec8551d57dfb0f9af4eccd4b5/diff:/var/lib/docker/overlay2/6090e9338168268495f9e1dd54a7a9f0a0399b1b13fe7d5f1ee8d8bd9b116410/diff:/var/lib/docker/overlay2/814c08fd12adfabaa3c461e48acf719557e592bcc18e0558032d07632796ab56/diff:/var/lib/docker/overlay2/85c7b357e98d32c8cf7eca847e1fa595ec7a5a3c26274c9000a7efe447652153/diff:/var/lib/docker/overlay2/ca30c1b0c799a8f81b9c8e1712de392dbefa55767d42fde8688082d9e8ff2a2f/diff:/var/lib/docker/overlay2/017dfb2e5f79926297eec3f5bf82e99420d813df7c4523c09e9be6d83c958609/diff:/var/lib/docker/overlay2/bb3cba0b74a7003a83a10506cccf94df917d5efa0a9d96eb596d5fba013079fb/diff:/var/lib/docker/overlay2/5975fbfa45b8b51db97941940958a52f91fe54a618cbee618b262a228b0eaef5/diff:/var/lib/docker/overlay2/8025f984ce30854b0651e53ab2c32468d7326a562e06af36dfc58b7154896eb1/diff:/var/lib/docker/overlay2/986928c5b8053f45cb0a7052e1cbfc7168603ee56e823ad2172dde889d07e58e/diff",
                "MergedDir": "/var/lib/docker/overlay2/e3b6b6dfc059db01741ae0ce4f4adadc7fc43364e9ba175168d180826ee63894/merged",
                "UpperDir": "/var/lib/docker/overlay2/e3b6b6dfc059db01741ae0ce4f4adadc7fc43364e9ba175168d180826ee63894/diff",
                "WorkDir": "/var/lib/docker/overlay2/e3b6b6dfc059db01741ae0ce4f4adadc7fc43364e9ba175168d180826ee63894/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/root/Container/dnmp/services/mysql5/mysql.cnf",
                "Destination": "/etc/mysql/conf.d/mysql.cnf",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/root/Container/dnmp/data/mysql5",
                "Destination": "/var/lib/mysql",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "888554c25098",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3306/tcp": {},
                "33060/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "TZ=Asia/Shanghai",
                "MYSQL_ROOT_PASSWORD=123456",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.16",
                "MYSQL_MAJOR=5.7",
                "MYSQL_VERSION=5.7.43-1.el7",
                "MYSQL_SHELL_VERSION=8.0.34-1.el7"
            ],
            "Cmd": [
                "mysqld"
            ],
            "Image": "mysql:5.7.43",
            "Volumes": {
                "/var/lib/mysql": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "9fa7906a8ef8f061a3f43bb3af0bb42a668d7d1c4e50fba801ab69d477e10ec9",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:92034fe9a41f4344b97f3fc88a8796248e2cfa9b934be58379f3dbc150d07d9d",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "dnmp",
                "com.docker.compose.project.config_files": "/root/Container/dnmp/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/root/Container/dnmp",
                "com.docker.compose.service": "mysql5",
                "com.docker.compose.version": "2.21.0",
                "desktop.docker.io/wsl-distro": "Ubuntu"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "dnmp_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "mysql5",
                        "mysql5"
                    ],
                    "NetworkID": "",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }
        }
    }
]
@doringeman
Copy link

doringeman commented Nov 15, 2023

Hello @greenhat616,
We have looked into this and we are pleased to share a development build with you.
If you could please give it a try, we would appreciate any feedback.
It is required to have WSL v2.0.4+ for this build to work.
Docker Desktop Installer.exe

@greenhat616
Copy link
Author

greenhat616 commented Nov 16, 2023

@doringeman
Hello, thanks for your work. I tested this build with compose file referred in issue content, in Windows11 23H2 and WSL v2.0.9.

All containers started and do port forwaring successfully EXCEPT mysql 5.7 and mysql 8 container.

This is mysql 5.7 logs output:

2023-11-16 14:05:15 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2023-11-16 14:05:19 2023-11-16 14:05:19+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:19 2023-11-16 14:05:19+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-11-16 14:05:19 2023-11-16 14:05:19+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:19 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2023-11-16 14:05:25 2023-11-16 14:05:25+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:25 2023-11-16 14:05:25+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-11-16 14:05:25 2023-11-16 14:05:25+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:25 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2023-11-16 14:05:34 2023-11-16 14:05:34+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:34 2023-11-16 14:05:34+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-11-16 14:05:34 2023-11-16 14:05:34+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:34 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2023-11-16 14:05:49 2023-11-16 14:05:49+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:49 2023-11-16 14:05:49+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-11-16 14:05:49 2023-11-16 14:05:49+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:05:49 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2023-11-16 14:06:17 2023-11-16 14:06:17+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:06:17 2023-11-16 14:06:17+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-11-16 14:06:17 2023-11-16 14:06:17+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:06:18 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2023-11-16 14:07:11 2023-11-16 14:07:11+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:07:11 2023-11-16 14:07:11+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2023-11-16 14:07:11 2023-11-16 14:07:11+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.43-1.el7 started.
2023-11-16 14:07:11 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

You can see it exited with no useful message.

This is mysql8 outputs:

2023-11-16 14:07:14 2023-11-16T06:07:14.742302Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2023-11-16 14:07:14 2023-11-16T06:07:14.742337Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-11-16 14:07:16 2023-11-16T06:07:16.335289Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32)  MySQL Community Server - GPL.
2023-11-16 14:08:17 2023-11-16T06:08:17.130736Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2023-11-16 14:08:17 2023-11-16T06:08:17.132631Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32) starting as process 1
2023-11-16 14:08:17 2023-11-16T06:08:17.140525Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-11-16 14:08:17 2023-11-16T06:08:17.305837Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-11-16 14:08:17 2023-11-16T06:08:17.569253Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-11-16 14:08:17 2023-11-16T06:08:17.569300Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-11-16 14:08:17 2023-11-16T06:08:17.570897Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
2023-11-16 14:08:17 2023-11-16T06:08:17.570928Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2023-11-16 14:08:17 2023-11-16T06:08:17.570946Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-11-16 14:08:19 2023-11-16T06:08:19.176797Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.32)  MySQL Community Server - GPL.
2023-11-16 14:09:20 2023-11-16T06:09:20.035772Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
2023-11-16 14:09:20 2023-11-16T06:09:20.037087Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32) starting as process 1
2023-11-16 14:09:20 2023-11-16T06:09:20.045573Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-11-16 14:09:20 2023-11-16T06:09:20.213622Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-11-16 14:09:20 2023-11-16T06:09:20.496057Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-11-16 14:09:20 2023-11-16T06:09:20.496093Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-11-16 14:09:20 2023-11-16T06:09:20.497977Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
2023-11-16 14:09:20 2023-11-16T06:09:20.498015Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2023-11-16 14:09:20 2023-11-16T06:09:20.498036Z 0 [ERROR] [MY-010119] [Server] Aborting

This says port 3306 is in use. I have no idea about why this issue occurs.

This is my mysql config:

[client]
port                    = 3306
default-character-set   = utf8mb4


[mysqld]
user                    = mysql
port                    = 3306
sql_mode                = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

default-storage-engine  = InnoDB
default-authentication-plugin   = mysql_native_password
character-set-server    = utf8mb4
collation-server        = utf8mb4_unicode_ci
init_connect            = 'SET NAMES utf8mb4'

disable-log-bin
skip-character-set-client-handshake
explicit_defaults_for_timestamp

slow_query_log
long_query_time         = 3
slow-query-log-file     = /var/log/mysql/mysql.slow.log
log-error               = /var/log/mysql/mysql.error.log

default-time-zone       = '+8:00'
lower_case_table_names = 1

[mysql]
default-character-set   = utf8mb4

and key compose snippet:

  mysql:
    image: mysql/mysql-server:${MYSQL_VERSION}
    container_name: mysql
    ports:
      - "${MYSQL_HOST_PORT}:3306"
    volumes:
    - ${MYSQL_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
    - ${DATA_DIR}/mysql:/var/lib/mysql/:rw
    restart: always
    networks:
      - default
    environment:
      MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
      MYSQL_ROOT_HOST: "${MYSQL_ROOT_HOST}"
      TZ: "$TZ"

image
image

@greenhat616
Copy link
Author

greenhat616 commented Nov 16, 2023

All rights. I have started a mariadb instance running in windows host. But this compose file is configured a network driver bridge. It should not be influenced by host used port.

@doringeman
Copy link

I am able to run both mysql containers.

docker run --rm -p 3304:3306 --network myNet mysql/mysql-server:8.0.32
docker run --rm -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --network myNet -p 127.0.0.1:3305:3306 mysql:5.7.43
$ docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED              STATUS                        PORTS                                     NAMES
c2ce5c8ed17d   mysql/mysql-server:8.0.32   "/entrypoint.sh mysq…"   About a minute ago   Up About a minute (healthy)   33060-33061/tcp, 0.0.0.0:3304->3306/tcp   elated_jones
73bfa27eff6d   mysql:5.7.43                "docker-entrypoint.s…"   About a minute ago   Up About a minute             33060/tcp, 127.0.0.1:3305->3306/tcp       blissful_mclaren

Please make sure your config is correct. Just trying to guess, is it ok to have both client and mysqld with port 3306?

This is my mysql config:
[client]
port = 3306
default-character-set = utf8mb4
[mysqld]
user = mysql
port = 3306
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

@greenhat616
Copy link
Author

greenhat616 commented Nov 16, 2023

I am able to run both mysql containers.

docker run --rm -p 3304:3306 --network myNet mysql/mysql-server:8.0.32
docker run --rm -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --network myNet -p 127.0.0.1:3305:3306 mysql:5.7.43
$ docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED              STATUS                        PORTS                                     NAMES
c2ce5c8ed17d   mysql/mysql-server:8.0.32   "/entrypoint.sh mysq…"   About a minute ago   Up About a minute (healthy)   33060-33061/tcp, 0.0.0.0:3304->3306/tcp   elated_jones
73bfa27eff6d   mysql:5.7.43                "docker-entrypoint.s…"   About a minute ago   Up About a minute             33060/tcp, 127.0.0.1:3305->3306/tcp       blissful_mclaren

Please make sure your config is correct. Just trying to guess, is it ok to have both client and mysqld with port 3306?

This is my mysql config:
[client]
port = 3306
default-character-set = utf8mb4
[mysqld]
user = mysql
port = 3306
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

I think if port is used in windows host, the bridge could get broken.

For example, if i stopped the mariadb in windows, the docker can start (both mysql8 and mysql5).
image
image
image

After I started mariadb in window, both mysql containers could not started.
image

Docker network inspect:

docker network inspect dnmp_default                  19:14:44
[
    {
        "Name": "dnmp_default",
        "Id": "c5dc1e0efbfae7dbb9bdab9e8686709787d7d8e66d40685868cecf5d31652cc8",
        "Created": "2023-11-16T06:04:59.00269857Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.18.0.0/16",
                    "Gateway": "172.18.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "6104fac12eb24208fb42861f8fc8aecd4205e3f4a77c2bfd1d8161ded6d8d76a": {
                "Name": "redis",
                "EndpointID": "044ff9f00569abc36c606633e1fd71159e67300dd50d04a922a3b9d612b11969",
                "MacAddress": "02:42:ac:12:00:04",
                "IPv4Address": "172.18.0.4/16",
                "IPv6Address": ""
            },
            "88b9869cfe209f5af237281ffb464ba5090d285fcf4d6a1409b5cb8b98460a17": {
                "Name": "php82",
                "EndpointID": "32f5c375edb4e8de8cd6cab847e73125065d166cbad429080469423d7eadb0cd",
                "MacAddress": "02:42:ac:12:00:09",
                "IPv4Address": "172.18.0.9/16",
                "IPv6Address": ""
            },
            "91bfd55c67028277ddf13756123cd83aec009a699f4d638f4243e390762cc0d1": {
                "Name": "php",
                "EndpointID": "33373c9f2b411b68a3af907775e8b9064ad5ee7a5f145a94e72140d3e80285e9",
                "MacAddress": "02:42:ac:12:00:08",
                "IPv4Address": "172.18.0.8/16",
                "IPv6Address": ""
            },
            "9b87db0f76802d2b54f8164bd752624c22c6e44c4470c87a4850c2c6dbee23c6": {
                "Name": "rabbitmq",
                "EndpointID": "75032dd7135dd67ed0ce456c6b85cd9ef44aa4eace7a8663bd8050ab3e0ae264",
                "MacAddress": "02:42:ac:12:00:05",
                "IPv4Address": "172.18.0.5/16",
                "IPv6Address": ""
            },
            "a461475570cb0680c4aca512ea8d3c79ab555882f3b06d72aca1e7dd963a5d06": {
                "Name": "mysql",
                "EndpointID": "936ac91c713a35a7f0f03f5486d17e5718fa8e376c19424c7fe7a15d9e2c6bc1",
                "MacAddress": "02:42:ac:12:00:06",
                "IPv4Address": "172.18.0.6/16",
                "IPv6Address": ""
            },
            "b96cec9cedbe515009992293977e2cc845ca0427243302117f995e489acb2895": {
                "Name": "mongodb",
                "EndpointID": "d5e18e7f7b96822d21cd1689122408a86cc180271bb1175b8ab0596d9f344d0f",
                "MacAddress": "02:42:ac:12:00:02",
                "IPv4Address": "172.18.0.2/16",
                "IPv6Address": ""
            },
            "bef8702a667fad80a2b2da1cd03fa8667e016d4e913fd715afffc0cf9e398fb2": {
                "Name": "mysql5",
                "EndpointID": "9f0e946d8d96dadf9fe4e42ca03f5127651ef693da7ceebded7a68303853cf22",
                "MacAddress": "02:42:ac:12:00:07",
                "IPv4Address": "172.18.0.7/16",
                "IPv6Address": ""
            },
            "ff7c10897b3614f06d75ad4691febbae1f802b54d3c89926dabd46574529c761": {
                "Name": "postgresql",
                "EndpointID": "940d62469ee4d489858e2c42e451ea0bc2786dce58d17962447b385f75cc1612",
                "MacAddress": "02:42:ac:12:00:03",
                "IPv4Address": "172.18.0.3/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {
            "com.docker.compose.network": "default",
            "com.docker.compose.project": "dnmp",
            "com.docker.compose.version": "2.23.0"
        }
    }
]

@cubicYYY
Copy link

cubicYYY commented Nov 23, 2023

Hello @greenhat616, We have looked into this and we are pleased to share a development build with you. If you could please give it a try, we would appreciate any feedback. It is required to have WSL v2.0.4+ for this build to work. Docker Desktop Installer.exe

I finally switched back to "NAT" mode and uninstalled the old build, then installed this DEV build. It works fine

@nanasess
Copy link

@greenhat616 It works fine

@doringeman
Copy link

We added support for WSL mirrored mode networking in Docker Desktop 4.26 (requires WSL v2.0.4 and up).
https://docs.docker.com/desktop/release-notes/#4260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants