我想拉this phpmyadmin image。 我的docker-compose看起来像这样:
services:
admin:
image: phpmyadmin:phpmyadmin
restart: always
ports:
- "8088:80"
volumes:
- /sessions
我不确定 image 标签。我从github page.获得了phpmyadmin:phpmyadmin。但是现在当做
docker login && docker-compose up
我收到此错误消息:
ERROR: pull access denied for phpmyadmin, repository does not exist or may require 'docker login'
我如何正确登录?图片名称正确(我认为),因为我也尝试了其他版本标签,例如4.7
答案 0 :(得分:0)
标签在这里:
https://hub.docker.com/r/phpmyadmin/phpmyadmin/tags/
yaml应该如下所示:
services:
admin:
image: phpmyadmin/phpmyadmin:latest
restart: always
ports:
- "8088:80"
volumes:
- /sessions
您可以通过先手动进行docker pull尝试正确的路径和标记。
docker pull phpmyadmin/phpmyadmin:<some-tag>
例如:
[root@host01 ~]# docker pull phpmyadmin/phpmyadmin:latest
Trying to pull repository registry.access.redhat.com/phpmyadmin/phpmyadmin ...
Trying to pull repository docker.io/phpmyadmin/phpmyadmin ...
latest: Pulling from docker.io/phpmyadmin/phpmyadmin
911c6d0c7995: Pull complete
2527cc05836d: Pull complete
3299172a2d6d: Pull complete
05782106624f: Pull complete
3e3261543ec8: Pull complete
ce1c845d4246: Pull complete
e005e70f55dc: Pull complete
84403a106e16: Pull complete
e4fc13f7949f: Pull complete
2a53e72ea7b9: Pull complete
d791f6b71f27: Pull complete
576bdfd7cc75: Pull complete
20768032f0fb: Pull complete
fc8aa3d46064: Pull complete
bade7addd704: Pull complete
4b30a4dd0b24: Pull complete
b02d6e91d2b5: Pull complete
Digest: sha256:6fa491d4e3994ab3ec3410409bf0d59436072df1cfb16b8fe25c47486988103f
Status: Downloaded newer image for docker.io/phpmyadmin/phpmyadmin:latest