• Home
  • LLMs
  • Python
  • Docker
  • Kubernetes
  • Java
  • Maven
  • All
  • About
Docker | Docker CLI - docker
  1. docker
  2. Usage
  3. Options
  4. Commands
  5. Management Commands

  1. docker
    The Docker CLI (Command-Line Interface) includes all docker commands.
    To list docker options and commands, type: docker --help
    To print information about a specific docker command, type: docker COMMAND --help
  2. Usage
    Usage: docker [OPTIONS] COMMAND [ARG...]
  3. Options
    -v, --version            Print version information and quit
    
    -H, --host list          Daemon socket(s) to connect to
    
    -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
    
    -D, --debug              Enable debug mode
    
    -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
    
        --config string      Location of client config files (default "$HOME/.docker")
    
        --tls                Use TLS; implied by --tlsverify
        --tlscacert string   Trust certs signed only by this CA (default "$HOME/.docker/ca.pem")
        --tlscert string     Path to TLS certificate file (default "$HOME/.docker/cert.pem")
        --tlskey string      Path to TLS key file (default "$HOME/.docker/key.pem")
        --tlsverify          Use TLS and verify the remote
  4. Commands
    version     Show the Docker version information
    inspect     Return low-level information on Docker objects
    login       Log in to a Docker registry
    logout      Log out from a Docker registry
    search      Search the Docker Hub for images
  5. Management Commands
    image       Manage images
    container   Manage containers
    volume      Manage volumes
    network     Manage networks
    buildx      Manage builds
    system      Manage Docker
    manifest    Manage Docker image manifests and manifest lists
    context     Manage contexts
    plugin      Manage plugins
    trust       Manage trust on Docker images
    ai*         Docker AI Agent - Ask Gordon
    cloud*      Docker Cloud
    compose*    Docker Compose
    debug*      Get a shell into any image or container
    desktop*    Docker Desktop commands
    dev*        Docker Dev Environments
    extension*  Manages Docker extensions
    init*       Creates Docker-related starter files for your project
    mcp*        Docker MCP Plugin
    model*      Docker Model Runner
    sbom*       View the packaged-based Software Bill Of Materials (SBOM) for an image
    scout*      Docker Scout
    swarm       Manage Swarm
    node        Manage Swarm nodes
    service     Manage services
    secret      Manage Docker secrets
    config      Manage Docker configs
    stack       Manage Docker stacks
© 2025  mtitek