Initial upload: shell-speak CLI tool with natural language to shell command conversion
This commit is contained in:
238
commands/docker.yaml
Normal file
238
commands/docker.yaml
Normal file
@@ -0,0 +1,238 @@
|
||||
version: "1.0"
|
||||
description: Docker command patterns
|
||||
|
||||
patterns:
|
||||
- name: list_containers
|
||||
description: List running containers
|
||||
patterns:
|
||||
- list running containers
|
||||
- show running containers
|
||||
- list containers
|
||||
- show all containers
|
||||
- docker ps
|
||||
template: docker ps
|
||||
explanation: Lists all running containers with their IDs, images, and status.
|
||||
|
||||
- name: list_all_containers
|
||||
description: List all containers including stopped ones
|
||||
patterns:
|
||||
- list all containers including stopped
|
||||
- show all containers
|
||||
- list all docker containers
|
||||
template: docker ps -a
|
||||
explanation: Lists all containers, including stopped ones.
|
||||
|
||||
- name: list_images
|
||||
description: List Docker images
|
||||
patterns:
|
||||
- list docker images
|
||||
- show images
|
||||
- list images
|
||||
- docker images
|
||||
template: docker images
|
||||
explanation: Lists all Docker images stored locally.
|
||||
|
||||
- name: run_container
|
||||
description: Run a new container
|
||||
patterns:
|
||||
- run a container
|
||||
- start a new container
|
||||
- run docker container
|
||||
- docker run
|
||||
template: docker run -d --name {name} {image}
|
||||
explanation: Starts a new detached container with the specified image.
|
||||
|
||||
- name: run_container_interactive
|
||||
description: Run a container in interactive mode
|
||||
patterns:
|
||||
- run container interactively
|
||||
- run container with terminal
|
||||
- docker run -it
|
||||
template: docker run -it --rm {image}
|
||||
explanation: Runs a container interactively with a terminal.
|
||||
|
||||
- name: stop_container
|
||||
description: Stop a running container
|
||||
patterns:
|
||||
- stop container
|
||||
- stop docker container
|
||||
- stop running container
|
||||
template: docker stop {container}
|
||||
explanation: Stops the specified running container.
|
||||
|
||||
- name: start_container
|
||||
description: Start a stopped container
|
||||
patterns:
|
||||
- start container
|
||||
- start docker container
|
||||
template: docker start {container}
|
||||
explanation: Starts a previously stopped container.
|
||||
|
||||
- name: remove_container
|
||||
description: Remove a container
|
||||
patterns:
|
||||
- remove container
|
||||
- delete container
|
||||
- docker rm
|
||||
template: docker rm {container}
|
||||
explanation: Removes the specified container.
|
||||
|
||||
- name: remove_container_force
|
||||
description: Force remove a running container
|
||||
patterns:
|
||||
- force remove container
|
||||
- delete container forcefully
|
||||
- remove container force
|
||||
template: docker rm -f {container}
|
||||
explanation: Forcefully removes a running container.
|
||||
|
||||
- name: remove_image
|
||||
description: Remove a Docker image
|
||||
patterns:
|
||||
- remove image
|
||||
- delete image
|
||||
- docker rmi
|
||||
template: docker rmi {image}
|
||||
explanation: Removes the specified Docker image.
|
||||
|
||||
- name: pull_image
|
||||
description: Pull a Docker image
|
||||
patterns:
|
||||
- pull image
|
||||
- download image
|
||||
- docker pull
|
||||
template: docker pull {image}
|
||||
explanation: Pulls a Docker image from the registry.
|
||||
|
||||
- name: build_image
|
||||
description: Build a Docker image from Dockerfile
|
||||
patterns:
|
||||
- build image
|
||||
- build docker image
|
||||
- docker build
|
||||
template: docker build -t {tag} .
|
||||
explanation: Builds a Docker image tagged with the specified name.
|
||||
|
||||
- name: push_image
|
||||
description: Push an image to registry
|
||||
patterns:
|
||||
- push image
|
||||
- push to registry
|
||||
- docker push
|
||||
template: docker push {image}
|
||||
explanation: Pushes a Docker image to the registry.
|
||||
|
||||
- name: container_logs
|
||||
description: View container logs
|
||||
patterns:
|
||||
- view logs
|
||||
- container logs
|
||||
- docker logs
|
||||
template: docker logs -f {container}
|
||||
explanation: Shows logs from the specified container.
|
||||
|
||||
- name: exec_container
|
||||
description: Execute command in container
|
||||
patterns:
|
||||
- exec into container
|
||||
- run command in container
|
||||
- docker exec
|
||||
template: docker exec -it {container} {command}
|
||||
explanation: Executes a command inside a running container.
|
||||
|
||||
- name: inspect_container
|
||||
description: Inspect container details
|
||||
patterns:
|
||||
- inspect container
|
||||
- container details
|
||||
- docker inspect
|
||||
template: docker inspect {container}
|
||||
explanation: Shows detailed information about a container.
|
||||
|
||||
- name: container_stats
|
||||
description: Show container resource usage
|
||||
patterns:
|
||||
- container stats
|
||||
- resource usage
|
||||
- docker stats
|
||||
template: docker stats
|
||||
explanation: Shows live resource usage statistics for containers.
|
||||
|
||||
- name: prune_containers
|
||||
description: Remove stopped containers
|
||||
patterns:
|
||||
- prune containers
|
||||
- cleanup containers
|
||||
- remove stopped containers
|
||||
template: docker container prune -f
|
||||
explanation: Removes all stopped containers.
|
||||
|
||||
- name: prune_images
|
||||
description: Remove unused images
|
||||
patterns:
|
||||
- prune images
|
||||
- cleanup images
|
||||
- remove unused images
|
||||
template: docker image prune -f
|
||||
explanation: Removes unused (dangling) images.
|
||||
|
||||
- name: prune_all
|
||||
description: Remove all unused resources
|
||||
patterns:
|
||||
- prune all
|
||||
- cleanup everything
|
||||
- docker system prune
|
||||
template: docker system prune -af
|
||||
explanation: Removes all stopped containers, unused networks, and dangling images.
|
||||
|
||||
- name: docker_compose_up
|
||||
description: Start services with docker-compose
|
||||
patterns:
|
||||
- docker compose up
|
||||
- start services
|
||||
- docker-compose up
|
||||
template: docker-compose up -d
|
||||
explanation: Starts all services defined in docker-compose.yml.
|
||||
|
||||
- name: docker_compose_down
|
||||
description: Stop services with docker-compose
|
||||
patterns:
|
||||
- docker compose down
|
||||
- stop services
|
||||
- docker-compose down
|
||||
template: docker-compose down
|
||||
explanation: Stops and removes all services defined in docker-compose.yml.
|
||||
|
||||
- name: docker_compose_logs
|
||||
description: View docker-compose logs
|
||||
patterns:
|
||||
- compose logs
|
||||
- docker compose logs
|
||||
- docker-compose logs
|
||||
template: docker-compose logs -f
|
||||
explanation: Shows logs from all compose services.
|
||||
|
||||
- name: docker_compose_build
|
||||
description: Build docker-compose services
|
||||
patterns:
|
||||
- compose build
|
||||
- docker compose build
|
||||
- docker-compose build
|
||||
template: docker-compose build
|
||||
explanation: Builds all services defined in docker-compose.yml.
|
||||
|
||||
- name: network_list
|
||||
description: List Docker networks
|
||||
patterns:
|
||||
- list networks
|
||||
- docker network ls
|
||||
template: docker network ls
|
||||
explanation: Lists all Docker networks.
|
||||
|
||||
- name: volume_list
|
||||
description: List Docker volumes
|
||||
patterns:
|
||||
- list volumes
|
||||
- docker volume ls
|
||||
template: docker volume ls
|
||||
explanation: Lists all Docker volumes.
|
||||
Reference in New Issue
Block a user