-
Notifications
You must be signed in to change notification settings - Fork 288
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
Comments
Hello @greenhat616, |
@doringeman All containers started and do port forwaring successfully EXCEPT mysql 5.7 and mysql 8 container. This is
You can see it exited with no useful message. This is mysql8 outputs:
This says port This is my mysql config:
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" |
All rights. I have started a |
I am able to run both mysql containers.
Please make sure your config is correct. Just trying to guess, is it ok to have both client and mysqld with port 3306?
|
I finally switched back to "NAT" mode and uninstalled the old build, then installed this DEV build. It works fine |
@greenhat616 It works fine |
We added support for WSL mirrored mode networking in Docker Desktop 4.26 (requires WSL v2.0.4 and up). |
Description
After upgraded to WSL 2 v2.0.0, and enabled
mirrorred
network.Docker can't start successfully due to its port forwarding?
Reproduce
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
Diagnostics ID
5A8256FC-1ECE-45CA-8348-C4BC81F3837C/20230920053355
Additional Info
Key docker compose config:
Docker inspect info:
The text was updated successfully, but these errors were encountered: