I am new to Docker and I would like to list stopped containers.
With docker ps :
sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Nothing appears because I restarted the machine and did not configure them to automatically start containers.
So when I try to start the container, it says:
sudo docker run -d -p 8080:80 --name=angular_moviemasher moviemasher/angular-moviemasher docker: Error response from daemon: Conflict. The name "/angular_moviemasher" is already in use by container b4428b708711c15233f558e70f58cb7800e23c4a6a57534abfa5818912630a37. You have to remove (or rename) that container to be able to reuse that name.. See 'docker run --help'.
Therefore, I would like to see which Docker containers are already installed and run them.
In the Docker Cheat Sheet documentation with examples, I can only find an example of how to show working containers:
Container Information
Show working containers. With the -a option, it shows started and stopped containers.
docker PS
source share