我已经在 Fedora 25 中安装了 Docker CE。
当我尝试使用以下命令登录到 Docker Hub 时,出现错误。
$ docker login --username xxx --password yyy https://hub.docker.com/
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to
https://hub.docker.com/v2/ failed with status: 404 Not Found
$ docker --version
Docker version 17.07.0-ce, build 8784753
$ docker-machine --version
docker-machine version 0.12.2, build 9371605
请注意,在Ubuntu 16.04中同样的命令可以正常工作。唯一我能想到的区别是Ubuntu有Docker,而Fedora有Docker-CE。
不确定为什么我只在Fedora上遇到这个错误。当Fedora安装在VirtualBox虚拟机中时,我会遇到这个错误。