找不到Docker容器 [英] Can not find docker container

查看:519
本文介绍了找不到Docker容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP核心api项目,并且我正在使用Visual Studio 2017来运行我的项目. 在我使用命令行上的此命令重命名了以前使用Visual Studio创建的Docker容器后,

I have asp core api project and i am using visual studio 2017 to run my project. After i renamed the docker container that was previously created using visual studio using this command on command line,

docker rename CONTAINER NEW_NAME

当我尝试在Visual Studio中再次运行该项目时,我收到以下消息.

I receive the following message when i try to run the project again in visual studio.

感谢您的帮助

Can not find docker container with the name starting with 'previous_container_name'.

推荐答案

删除解决方案目录中的.vs文件夹(首先关闭解决方案),Docker映像名称似乎缓存在其中.

Delete the .vs folder in your solution directory (close the solution first), the Docker image name seems to be cached somewhere in there.

这篇关于找不到Docker容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆