首页 > 解决方案 > 是否错过了 Docker 入门文档?

问题描述

我一步一步地按照教程Docker Get started Docs进行操作。但是当我运行时:docker build -t getting-started .它显示错误:

Sending build context to Docker daemon  4.659MB
Error response from daemon: Cannot locate specified Dockerfile: Dockerfile

我想放弃,因为我在网上找不到任何答案。但就像奇迹一样,当我右键单击 DockerFile 时,它​​会显示一个选项“构建映像”(感谢 Visual Studio Code),它实际上运行:docker build --pull --rm -f "DockerFile" -t app:latest "." 然后运行良好。我不知道是不是我的错误,或者这是 docker docs 错误?

标签: docker

解决方案


推荐阅读