gradle docker plugin

    xiaoxiao2021-03-25  130

    这是用gradle写成的docker的插件

    该插件实现了如下docker能力

    Supported Features

    feature set based on the Docker Engine API v1.25

    Since the Docker engine api tends to be backwards compatible,the underlying Docker Client currently supports most other api versions, too.

    Current api coverage (40/114):

    This project tends to support most api endpoints, but only if there's an actual use case. If you're missing a feature, please filea new issue or a pull requestand we'll add it as soon as the time allows. This plugin relies on the Docker Client whilethere's a similar Gradle Docker plugin basedon the Java Docker API Client available, too.

    Management Commands

    Checkpoints - Manage checkpoints (0/3)

    docker checkpoints create: Create a checkpoint from a running container docker checkpoints ls: List checkpoints for a container docker checkpoints rm: Remove a checkpoint

    Container - Manage containers (18/32)

    docker container attach <container>: Attach to a running container (supports interactive tty) Attach to a running container (websocket) Resize a container TTY docker container commit <container>: Create a new image from a container's changes docker container cp <container>:<path> <hostpath>: Get an archive of a filesystem resource in a container docker container cp <hostpath> <container>:<path>: Extract an archive of files or folders to a directory in a container Retrieve information about files and folders in a container docker container create: Create a new container docker container diff <container>: Inspect changes on a container's filesystem docker container exec <container> <command>: Run a command in a running container Exec Start (supports interactive tty) Exec Create Exec Resize Exec Inspect docker container export <container>: Export a container's filesystem as a tar archive docker container inspect <container>: Display detailed information on one or more containers docker container kill <container>: Kill one or more running containers docker container logs <container>: Fetch the logs of a container docker container ps: List containers (alias for ls, list) docker container pause <container>: Pause all processes within one or more containers docker container port: List port mappings or a specific mapping for the container docker container prune: Remove all stopped containers docker container rename <container>: Rename a container docker container restart <container>: Restart one or more containers docker container rm <container>: Remove one or more containers docker container run: Run a command in a new container docker container start <container>: Start one or more stopped containers docker container stats <container>: Display a live stream of container(s) resource usage statistics docker container stop <container>: Stop one or more running containers docker container top <container>: Display the running processes of a container docker container unpause <container>: Unpause all processes within one or more containers docker container update <container> [<container>...]: Update configuration of one or more containers docker container wait <container>: Block until one or more containers stop, then print their exit codes

    Image - Manage images (6/14)

    docker image build: Build an image from a Dockerfile docker image history <image>: Show the history of an image docker image import: Import the contents from a tarball to create a filesystem image (from stream) docker image import: Import the contents from a tarball to create a filesystem image (from url) docker image inspect <image>: Display detailed information on one or more images docker image load: Load a tarball with a set of images and tags into docker docker image ls: List Images docker image prune: Remove unused images docker image pull: Pull an image or a repository from a registry docker image push <image>: Push an image or a repository to a registry docker image rm <image>: Remove one or more images docker image save <image>: Get a tarball containing all images in a repository docker image save <image> [<image> ...]: Get a tarball containing all images. docker image tag <image> <repository>: Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

    Network - Manage networks (5/7)

    docker network connect: Connect a container to a network docker network create: Create a network docker network disconnect: Disconnect a container from a network docker network inspect: Display detailed information on one or more networks docker network ls: List networks docker network prune: Remove all unused networks docker network rm: Remove one or more networks

    Node - Manage Swarm nodes (0/7)

    docker node demote: Demote a node from manager in the swarm docker node inspect: Inspect a node in the swarm docker node ls: List nodes in the swarm docker node promote: Promote a node to a manager in the swarm docker node ps: List tasks running on a node docker node rm: Remove a node from the swarm docker node update: Update a node

    Plugin - Manage plugins (0/10)

    docker plugin create: Create a plugin from a rootfs and config POST /plugins/create docker plugin disable: Disable a plugin POST /plugins/{name:.*}/disable docker plugin enable: Enable a plugin POST /plugins/{name:.*}/enable docker plugin inspect: Inspect a plugin GET /plugins/{name:.*}/json docker plugin install: Install a plugin (equivalent to pull + enable) docker plugin ls: List plugins GET /plugins Get plugin privileges GET /plugins/privileges docker plugin push: Push a plugin POST /plugins/{name:.*}/push Pull a plugin POST /plugins/pull docker plugin rm: Remove a plugin DELETE /plugins/{name:.*} docker plugin set: Change settings for a plugin POST /plugins/{name:.*}/set

    Secrets - Manage Docker secrets (0/5)

    docker secret create: Create a secret docker secret inspect: Inspect a secret docker secret ls: List secrets Update a Secret POST /secrets/{id}/update docker secret rm: Delete a secret

    Service - Manage services (2/8)

    docker service create: Create a service docker service inspect: Return information on the service <id> docker service logs: Get service logs (GET /services/{id}/logs) docker service ls: List services docker service ps: List the tasks of a service docker service rm: Remove a service docker service scale: Scale one or multiple services docker service update: Update a service

    Stack - Manage Docker stacks (0/5)

    docker stack deploy: Deploy a new stack or update an existing stack docker stack ls: List stacks docker stack ps: List the tasks in the stack docker stack rm: Remove the stack docker stack services: List the services in the stack

    Swarm - Manage Swarm (3/8)

    docker swarm init: Initialize a Swarm docker swarm join: Join a Swarm as a node and/or manager docker swarm join-token: Manage join tokens docker swarm leave: Leave a Swarm docker swarm inspect: Inspect the Swarm docker swarm unlock: Unlock swarm docker swarm unlock-key: Manage the unlock key docker swarm update: Update the Swarm

    System - Manage Docker (1/4)

    docker system info: Display system-wide information docker system df: Show docker disk usage docker system events: Monitor Docker's events docker system prune: Remove unused data

    Volume - Manage volumes (3/5)

    docker volume create: Create a volume docker volume inspect: Display detailed information on one or more volumes docker volume ls: List volumes from all volume drivers docker volume prune: Remove all unused volumes docker volume rm: Remove one or more volumes

    Other Commands

    Misc (2/4)

    docker search <term>: Search the Docker Hub for images docker version: Show the docker version information Check auth configuration Ping the docker server

    Tasks (0/2)

    List all tasks Get details on a task

    REF

    https://github.com/gesellix/gradle-docker-plugin

    转载请注明原文地址: https://ju.6miu.com/read-4780.html

    最新回复(0)