Skip to content

Commit f8a8500

Browse files
docker cmd changes - less in traefik and docker inspect config preview
1 parent 66a0eba commit f8a8500

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/modules/docker/docker/services/getactiontemplates.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ func GetActionTemplates() map[string]string {
1111
"docker -- stats": "docker stats",
1212
"docker -- ps": "watch docker ps",
1313
"docker -- ps -a": "watch docker ps -a",
14-
"docker -- inspect <resource>": "docker inspect %s | jq && read",
14+
"docker -- inspect <resource>": "docker inspect %s | jq | less",
1515
"bash -- bash": "bash",
1616
"bash -- htop": "htop",
1717
"django -- python manage.py shell": "docker exec -u root -it %s python manage.py shell",
1818
"django -- python manage.py shell_plus": "docker exec -u root -it %s python manage.py shell_plus",
19-
"traefik -- show config routers": "docker exec %s sh -c 'apk add --no-cache --no-progress -q curl && curl localhost:8080/api/rawdata' | jq '.routers' && " + continueMsg,
20-
"traefik -- show config services": "docker exec %s sh -c 'apk add --no-cache --no-progress -q curl && curl localhost:8080/api/rawdata' | jq '.services' && " + continueMsg,
19+
"traefik -- show config routers": "docker exec %s sh -c 'apk add --no-cache --no-progress -q curl && curl localhost:8080/api/rawdata' | jq '.routers' | less",
20+
"traefik -- show config services": "docker exec %s sh -c 'apk add --no-cache --no-progress -q curl && curl localhost:8080/api/rawdata' | jq '.services' | less",
2121
}
2222
}

internal/modules/docker/swarm/services/getactiontemplates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func GetActionTemplates() map[string]string {
77
"swarm -- ls": "watch docker service ls",
88
"swarm -- ps <service>": "watch docker service ps %s --no-trunc",
99
"swarm -- ps <service> (only running)": `watch 'docker service ps --filter desired-state=running --format "{{.ID}} {{.Name}} - {{.Node}} | {{.Image}}" %s'`,
10-
"swarm -- inspect <service>": "docker service inspect %s | jq && read",
10+
"swarm -- inspect <service>": "docker service inspect %s | jq | less",
1111
"swarm -- update <service>": "docker service update %s --force && " + continueMsg,
1212
"swarm -- logs -f <service>": "docker service logs -f %s",
1313
"swarm -- logs <service> | less": "docker service logs %s | less",

0 commit comments

Comments
 (0)