Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.01 KB

docker-commands.md

File metadata and controls

56 lines (40 loc) · 1.01 KB

Docker Commands Reference

This document contains useful Docker commands to manage containers, images, and volumes.

Images

  • View all images:
    docker images

Volumes

  • List all volumes:
    docker volume ls

Containers

  • View running containers:

    docker ps
  • View all containers (including stopped):

    docker ps -a

Container Management

  • Start a container:

    docker start ubuntu_vulkan_api
  • Access a running container:

    docker attach ubuntu_vulkan_api

    Or:

    docker exec -it ubuntu_vulkan_api bash

Exiting the Container

  • Exit the container without stopping it:
    • Use exit to leave the container.
    • Use Ctrl + Q (Read Escape Sequence) to leave the terminal without stopping the container.

For more Docker commands and details, refer to the Docker documentation.