Skip to content

Commit 7af3a06

Browse files
authored
Merge branch 'main' into add_intellij_idea_commands
2 parents 7cbd441 + 00b4bd4 commit 7af3a06

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ workflows/src/generated_workflows/*
44
.idea
55
build_ts/dist
66
build_ts/node_modules/
7+
.DS_Store
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Rename a Docker volume
3+
command: "docker volume create --name {{new_volume}} && docker run --rm -it -v {{old_volume}}:/from -v {{new_volume}}:/to alpine ash -c 'cd /from ; cp -av . /to' && docker volume rm {{old_volume}}"
4+
tags:
5+
- docker
6+
description: Renames a Docker volume by creating a new volume, copying all of its content to from the old to the new volume and then deletes the old volume.
7+
arguments:
8+
- name: old_volume
9+
description: The name of the old volume
10+
default_value: ~
11+
- name: new_volume
12+
description: The name of the new volume
13+
default_value: ~
14+
source_url: "https://github.com/moby/moby/issues/31154#issuecomment-360531460"
15+
author: Hyruu
16+
author_url: "https://github.com/Hyruu"
17+
shells: []

0 commit comments

Comments
 (0)