[docker] Error response from daemon: No such container


% docker start myalpne
Error response from daemon: No such container: myalpne
Error: failed to start containers: myalpne

If you tried to start a docker container and you received an error response from the docker daemon saying No such container, then this could be due to the following reasons,

Reasons for No such container

  • You have misspelled the container name or ID
  • The container that you are trying to start was removed.
  • You may have mistakenly provided the image name instead of container
  • Container with the specified name does not really exists.

Fix/Solutions:

Just run docker ps -a command and see what the name of the container is that you are trying to start.

% docker ps -a        
CONTAINER ID   IMAGE     COMMAND   CREATED        STATUS         PORTS     NAMES
cc7aef6c0663   alpine    "sh"      24 hours ago   Up 6 minutes             myalpine
Fix docker - Error response from daemon - No such container


Have Questions? Post them here!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.