Reputation: 27
I am using Docker Desktop for Windows and when I was running the docker command on windows PowerShell but I am not able to see the CONTAINER ID
and CONTAINER NAME
.
COMMAND: docker ps -a
Can someone please tell what will be the command for that?
Thanks
Upvotes: 2
Views: 3839
Reputation: 4444
Please click on the Docker desktop icon on the right bottom corner of your desktop as shown below.
The Docker desktop ui should show all of the live as well as exited container.
Runa a sample nginx container and check the correctness of your installation.
docker run -it --rm -d -p 8080:80 --name web nginx
Check if you are able to see newly created nginx container named web on the dockerdesktop ui.
If you can see the newly created nginx container then your installation is correct. Now run your container from the command line and observe the Dockerdesktop UI.
If nginx container doesn't start then your docker installation is having the problem. Please do a clean uninstall and follow the steps
ReInstall Docker Desktop on Windows using below steps:
https://docs.docker.com/docker-for-windows/install/
Upvotes: 1