win10 在git bash上使用docker

想在win10上装MySQL,才发现是个大坑,各种报错,只好用docker在win10上运行MySQL

>>> docker pull mysql
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/mysql/manifests/latest: unauthorized: incorrect username or password

报错,需要login一下

>>> docker login
Authenticating with existing credentials...
Stored credentials invalid or expired
Error: Cannot perform an interactive login from a non TTY device

报错,需要winpty login一下

>>> winpty docker login
Authenticating with existing credentials...
Stored credentials invalid or expired
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username ():

为什么要用winpty,可以看这里

你可能感兴趣的:(工具,数据处理)