Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not find docker container

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

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

Thanks for the help

Can not find docker container with the name starting with 'previous_container_name'.
like image 493
Eskinder Avatar asked May 17 '17 13:05

Eskinder


People also ask

Where is my Docker container located?

If you use the default storage driver overlay2, then your Docker images are stored in /var/lib/docker/overlay2 . There, you can find different files that represent read-only layers of a Docker image and a layer on top of it that contains your changes.

What happens when Docker Cannot find an image locally?

This usually means that Docker is trying to run an image, but it doesn't exist on your computer, and Docker can't find it in a registry either. This tends to happen if you're trying to run some software which requires you to build the container image yourself first (with a Dockerfile).

How do I find the Docker build image?

With Dockerfile written, you can build the image using the following command: $ docker build . We can see the image we just built using the command docker images.


2 Answers

This error started happening to me when someone on the team unchecked the build checkbox for the docker-compose project. Make sure it is enabled in Build -> Configuration Manager

enter image description here

like image 99
Fábio Junqueira Avatar answered Oct 21 '22 17:10

Fábio Junqueira


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

like image 23
Jonathan Dickinson Avatar answered Oct 21 '22 16:10

Jonathan Dickinson