The following list features some of the most useful commands in Docker:
- docker images: Shows the container list
- docker pull: Downloads an image
- docker rmi: Removes an image
- docker run: Runs an image
- docker rm: Renames an image
- docker ps: Runs containers
- docker inspect: Shows a container's content (ID)
- docker logs: Shows a log of a container's executions
- docker start/stop/restart: <CONTAINERNAME>
- docker commit: Saves a stopped container as a new image
You can run these commands from the Windows command prompt, as shown in the following screenshot:
