不能 运行 docker:dind 作为 docker:docker

Cannot run docker:dind as docker:docker

我不能 运行 docker:dind 因为 docker:docker 即使我直觉应该:

[sad@localhost ~]$ docker pull docker
Using default tag: latest
latest: Pulling from library/docker
540db60ca938: Already exists 
5a38b3726f4b: Already exists 
e5fa5deb3340: Already exists 
2b7e0e3b7545: Already exists 
493333e9491f: Already exists 
28d445cfca76: Already exists 
32eb6dfb9227: Already exists 
Digest: sha256:ad50b8d78b41dc52f42ab123ce0e3f48c54437ed70ecc2a44c99e889924c8e56
Status: Downloaded newer image for docker:latest
docker.io/library/docker:latest
[sad@localhost ~]$ docker run --privileged -d docker:docker
Unable to find image 'docker:docker' locally
docker: Error response from daemon: manifest for docker:docker not found: manifest unknown: manifest unknown.
See 'docker run --help'.
[sad@localhost ~]$ 

这是设计使然,我应该将 docker:docker 图像引用为 docker:dind 吗?

谢谢。

你必须改变

docker run --privileged -d docker:docker

进入

docker run --privileged -d docker:latest