"docker build" requires exactly 1 argument.
时间: 2024-05-17 09:16:18 浏览: 207
这个错误是因为在构建镜像时没有提供正确的参数。"docker build"命令需要一个参数来指定Dockerfile的路径或URL。在你的命令中,你需要在"docker build"之后提供一个正确的路径或URL。你可以检查一下输入的命令是否正确,并确保提供了正确的参数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Docker报错:“docker build“ requires exactly 1 argument.](https://blog.csdn.net/qq_35764295/article/details/126172233)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Docker使用遇到问题:docker build requires exactly 1 argument(s)](https://blog.csdn.net/m0_59092234/article/details/126327380)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文