mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-09 02:09:23 +00:00
Add --rm to busybox container
Since it is meant to be just a temporary container. Also, put `$PWD` into double quotes to prevent the expansion of multiple parameters if it has space.
This commit is contained in:
1 parent
b1228e8330
commit
3a0fd48183
1 file changed
+1
-1
+1
-1
@@ -80,7 +80,7 @@ During upgrade, you create a copy of the data from your current Rancher containe
|
||||
|
||||
|
||||
```
|
||||
docker run --volumes-from rancher-data -v $PWD:/backup busybox tar zcvf /backup/rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz /var/lib/rancher
|
||||
docker run --volumes-from rancher-data -v "$PWD:/backup" --rm busybox tar zcvf /backup/rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz /var/lib/rancher
|
||||
```
|
||||
|
||||
**Step Result:** When you enter this command, a series of commands should run.
|
||||
|
||||
Reference in new issue
Block a user