Docker要求在Windows 10中login
我从bash中发布了一个命令“docker build -t httpd。”,这个预configuration的docker文件具有FROM httpd.latest。
一旦执行命令,并在步骤1后说:“拉访问拒绝httpd.latest,存储库不存在或可能需要dockerlogin。
是的,你正在使用的图像可能不会exixts在公共dockerhub
首先使用search图像
docker search httpd
如果你能find,那么你需要创build
https://github.com/docker-library/httpd/blob/c14a031c014aa2219aea2e73786f577300756f0b/2.2/Dockerfile
在你的dockerfile中使用
FROM httpd
不是最新的,
如果未指定标记或使用特定的版本,docker将拉取最新的图像