docker - 是否错过了 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 错误?
解决方案
推荐阅读
- algorithm - 用于技术分析指标的 Kotlin
- wcf - 如何在证书身份验证中获取 Windows 身份详细信息
- asp.net-core - 在 .NetCore 中使用瞬态、作用域或单例的混淆
- c# - 使用安装向导 Visual Studio 创建 exe 快捷方式
- amazon-web-services - 使用 Terraform,创建具有数据源和数据目标的 Glue 作业作为 Amazon S3
- python - 计算包含 NaN 的数组之间的距离
- c++ - 从 rtsp 流 ffmpeg 获取帧——挂在 av_read_play
- arduino - 超声波传感器
- php - 更新日期等于今天日期的 Mysql 行
- javascript - 通过 url 导航时用户已注销