Sign inSign up

pdbs/docker-service-exec

By pdbs

•Updated 5 months ago

executes a command in all service instances on every node in a swarm cluster

Image
0

10K+

pdbs/docker-service-exec repository overview

⁠docker-service-exec

executes a command in docker service

⁠execute command

docker service create \
	--detach \
	--name docker-service-exec-test \
        --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
	--mode global \
	--restart-condition none \
    pdbs/docker-service-exec \
<service-name> <command>

executes in instance of . is a single string whithout whitespace. The service has to be removed prior to next execution.

Tag summary

Content type

Image

Digest

sha256:ec9348501…

Size

134.4 MB

Last updated

5 months ago

docker pull pdbs/docker-service-exec