Swarm operations roles

The following describes the set of operations (calls) that you can execute to the Swarm resources. Each permission corresponds to a CLI command and enables the user to execute that command. Refer to the Docker CLI documentation for a complete list of commands and examples.

Operation

Command

Description

Config

docker config

Manage Docker configurations.

Container

docker container

Manage Docker containers.

Container

docker container create

Create a new container.

Container

docker create [OPTIONS] IMAGE [COMMAND] [ARG...]

Create new containers.

Container

docker update [OPTIONS] CONTAINER [CONTAINER...]

Update configuration of one or more containers. Using this command can also prevent containers from consuming too many resources from their Docker host.

Container

docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers.

Image

docker image COMMAND

Remove one or more containers.

Image

docker image remove

Remove one or more images.

Network

docker network

Manage networks. You can use child commands to create, inspect, list, remove, prune, connect, and disconnect networks.

Node

docker node COMMAND

Manage Swarm nodes.

Secret

docker secret COMMAND

Manage Docker secrets.

Service

docker service COMMAND

Manage services.

Volume

docker volume create [OPTIONS] [VOLUME]

Create a new volume that containers can consume and store data in.

Volume

docker volume rm [OPTIONS] VOLUME [VOLUME...]

Remove one or more volumes. Users cannot remove a volume that is in use by a container.