By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Get information about the Docker version and system configuration. docker version
Output: Docker version information.2. Get detailed information about the Docker version and system configuration. ```bash docker version
Output: Detailed Docker version and system configuration information.3. Check the Docker system configuration. bash docker info Output: Detailed Docker system configuration information.4. Clean up by removing all stopped containers. ⚠️ docker container prune
bash docker info
Error message or symptom: docker: command not foundWhy it happens: Docker is not installed.One-line fix: sudo apt-get install docker.io
Error message or symptom: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?Why it happens: Docker is not running.One-line fix: sudo systemctl start docker
Error message or symptom: Error response from daemon: failed to remove container: cannot kill container: container is already deadWhy it happens: Docker container is already dead.One-line fix: docker container rm
Situation: You want to check the Docker version.Command to run: docker --versionCorrect response: Docker version information.
Situation: You want to check the Docker system configuration.Command to run: docker infoCorrect response: Detailed Docker system configuration information.
Situation: You want to remove all stopped containers.Command to run: docker container pruneCorrect response: All stopped containers removed.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.