陈运
|
docker已经启动mysql容器 但是无法进入 外部Navicat也无法连接上 [root@localhost ~]# docker run -p 3306:3306 --name=mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql ff75f32d41e7533b106d145bce20c623bffc743fd3af310fe29fad8e701ef31b [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ff75f32d41e7 mysql "docker-entrypoint..." 6 seconds ago Up 5 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp mysql [root@localhost ~]# docker exec -it mysql bash rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "process_linux.go:110: decoding init err or from pipe caused \"read parent: connection reset by peer\""
网上执行docker exec -it mysql bash这段命令都没问题 我这不知道出什么问题 能正常启动mysql
|
2018-12-10 19:35:00